I need to make second function on this code, but got an error. Help please!
#6

Change this:
if(IsValidObject(VehicleObject[0]))
to
if(!IsValidObject(VehicleObject[0]))

Right now, you're doing a check to see if the object is valid, and if it is, you end up creating it again.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)