It is currently September 6th, 2010, 12:35 am




Post new topic Reply to topic  [ 1 post ] 
 instance_exists() value issues 
Author Message

Joined: March 16th, 2009, 4:42 pm
Posts: 13
Post instance_exists() value issues
Trying to check whether or not objects exist and it's not reading the values correctly.
Image

Code:
ship=(choose("rnd","values..."))
i=(string("obj_sm")+string(ship))

if !instance_exists(i)
{//stuff}


instance_exists(obj_smrnd) says the object doesn't exist.
BUT instance_exists(i) or instance_exists("obj_sm")+string(ship))
says it does exist. :gerr: //the object was really non-existant
Any ideas why this is or how to remedy it?
---

Edit:nvm got it to work, seems the instance_exists() was treating the object like a string.


July 26th, 2010, 9:19 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron