how should i use Destroy object here?
#7

Quote:
Originally Posted by Grim_
Посмотреть сообщение
This method would be better:
pawn Код:
if(strcmp(cmdtext, "/bomb", true) == 0)
{
   // Some stuff
   new object = CreateObject(...);
   SetTimerEx("BombDetonate", 5000, false, "ii", playerid, object);
   return 1;
}

public BombDetonate(playerid, object)
{
   // Your stuff
   CreateExplosion(...); // X Y  Z of the bomb's location
   DestroyObject(object);
}
Also your current SetTimerEx functions is incorrectly formatted.
yea i've tried new object = CreateObject(...);

but it says when i compile that the thing is never used...

and i don't know how i could use it, because if i only do CreateObject it won't store in a variable, so i will not be able to delete it after?

and then in my callback it says undefined symbol "object"

i should have precised this in my first post but nvm xD so anyone knows?
Reply


Messages In This Thread
how should i use Destroy object here? - by pmk1 - 07.10.2010, 23:21
Re: how should i use Destroy object here? - by Lenny the Cup - 07.10.2010, 23:24
Re: how should i use Destroy object here? - by Retardedwolf - 07.10.2010, 23:24
Re: how should i use Destroy object here? - by Grim_ - 07.10.2010, 23:25
Re: how should i use Destroy object here? - by Steven82 - 07.10.2010, 23:25
Re: how should i use Destroy object here? - by Tommie1331 - 07.10.2010, 23:27
Re: how should i use Destroy object here? - by pmk1 - 07.10.2010, 23:34
Re: how should i use Destroy object here? - by Grim_ - 07.10.2010, 23:36
Re: how should i use Destroy object here? - by Lenny the Cup - 07.10.2010, 23:40
Re: how should i use Destroy object here? - by pmk1 - 07.10.2010, 23:41
Re: how should i use Destroy object here? - by Grim_ - 07.10.2010, 23:42
Re: how should i use Destroy object here? - by Lenny the Cup - 07.10.2010, 23:44
Re: how should i use Destroy object here? - by pmk1 - 09.10.2010, 17:38

Forum Jump:


Users browsing this thread: 1 Guest(s)