SetTimerEx -Crash
#1

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;
}
Reply
#2

Check the example more carefully for SetTimerEx.
Reply
#3

You don't need comma's in between the floats.
Reply
#4

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
You don't need comma's in between the %f.
Nope still crashing server....
Reply
#5

pawn Код:
SetTimerEx("ExplodeBomb", 10000, false,"fffdd", X, Y, Z, 10, 10);
Try that .
Reply
#6

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
Reply
#7

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);
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)