SetTimerEx -Crash - 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: SetTimerEx -Crash (
/showthread.php?tid=270611)
SetTimerEx -Crash -
DRIFT_HUNTER - 21.07.2011
These fucking line crash my server when its called (im 100% sure cos i debuged my script)
Everything looks fine but it crash my server :/
pawn Код:
SetTimerEx("ExplodeBomb", 10000, false,"%f,%f,%f,10,10", X, Y, Z);
//Here is the function that is called but its not it...i tested it bu calling it directly
forward ExplodeBomb(Float:X, Float:Y, Float:Z,Float:Radius, Type);
public ExplodeBomb(Float:X, Float:Y, Float:Z,Float:Radius, Type)
{
if(Type == 0) {Type = 10;}
CreateExplosion( X, Y, Z, Type, Radius);
return 1;
}
Re: SetTimerEx -Crash -
Cyanide - 21.07.2011
Check the example more carefully for
SetTimerEx.
Re: SetTimerEx -Crash -
[HiC]TheKiller - 21.07.2011
You don't need comma's in between the floats.
Re: SetTimerEx -Crash -
DRIFT_HUNTER - 21.07.2011
Quote:
Originally Posted by [HiC]TheKiller
You don't need comma's in between the %f.
|
Nope still crashing server....
Re: SetTimerEx -Crash -
[HiC]TheKiller - 21.07.2011
pawn Код:
SetTimerEx("ExplodeBomb", 10000, false,"fffdd", X, Y, Z, 10, 10);
Try that
.
Re: SetTimerEx -Crash -
DRIFT_HUNTER - 21.07.2011
Quote:
Originally Posted by [HiC]TheKiller
pawn Код:
SetTimerEx("ExplodeBomb", 10000, false,"fffdd", X, Y, Z, 10, 10);
Try that .
|
Thx man i finally figured out how its works
Re: SetTimerEx -Crash -
Cyanide - 21.07.2011
Radius is declared as a float, therefore you need to pass a float placeholder:
pawn Код:
SetTimerEx("ExplodeBomb", 10000, false,"ffffd", X, Y, Z, 10, 10);
Re: SetTimerEx -Crash -
DRIFT_HUNTER - 21.07.2011
Quote:
Originally Posted by Cyanide
Radius is declared as a float, therefore you need to pass a float placeholder:
pawn Код:
SetTimerEx("ExplodeBomb", 10000, false,"ffffd", X, Y, Z, 10, 10);
|
Well yeah its a float but integers can fit in float so no problem thx