which is better ?
#1

ok, so i was wondering which is more efficient to use ?

Quote:

forward Callback(playerid);
public Callback(playerid);
{
// action
SetTimerEx("Callback", 300, false, "i", playerid);
return 1;
}

OR just this here...

Quote:

SetTimerEx("Callback", 300, true, "i", playerid);

I am asking this because i find this here

Quote:

SetTimerEx("Callback", 300, true, "i", playerid);

really glitchy because even if under "CallBack" i add if(IsPlayerConnected) or killtimer after the person logs out it still keeps on going and eventually my server crash's but the first method works perferctly ! althought i am not sure if its better to use.

So i am asking you people which one is better to use ?
Reply
#2

First.
Reply
#3

Second method INDEED.

The problem is that you never kill the timer when player leaves. I guess that's the prob, in KillTimer, did you create a new variable for the timer?
Reply
#4

i have i even added 3 same killtimers but its still going after you log out...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)