SA-MP Forums Archive
Bomb does not work in timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bomb does not work in timer (/showthread.php?tid=74601)



Bomb does not work in timer - Trooper[Y] - 24.04.2009

I think this is nearly the same problem as before....

This is the (whole) Code:
http://pastebin.com/d22836167

Can you tell me,why NEVER EVER theres an explosion ?


Re: Bomb does not work in timer - Joe Staff - 24.04.2009

PosX,PosY,PosZ have to be Floats!

SetTimerEx("explosion",10000,0,"iiiii",playerid,po sX,posY,posZ,0,0);
Found in "/Plant" command has to be
SetTimerEx("explosion",10000,0,"ifffi",playerid,po sX,posY,posZ,0,0);

the foward for the callback has to be

forward explosion(playerid,FloatosX,FloatosY,FloatposZ ,X,Y);
public explosion(playerid,FloatosX,FloatosY,Floatos Z,X,Y)


Re: Bomb does not work in timer - Trooper[Y] - 24.04.2009

The /plant i got too, but the forward is new....
I`ll test it,wait a min...

/edit:
OH MY GOD !
It works....

And i think,you fixed up to 10 Problems of other Scripts to !!!

I will give you credits for all Scripts, which were bugged,until you helped me this