SA-MP Forums Archive
[SOLVED] Crash because of 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: [SOLVED] Crash because of timer (/showthread.php?tid=254530)



[SOLVED] Crash because of timer - Vukilore - 11.05.2011

Hello

I've a little problem here...

There is my timer:

pawn Код:
SetTimerEx("Trouvmatf", 9000, 0, "s", playerid);
And here my function:
pawn Код:
forward Trouvmatf(playerid);
public Trouvmatf(playerid)
{
        new string[128];
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "BLABLA HERE");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s has found material...", sendername);
        NearbyMessageForPlayers(playerid, COLOR_PURPLE, string);
        return 1;
}
When i put my timer in a command, my server crash when some player execute it
Sorry for my bad english, i'm french

Thanks for reply

Good day dude !


Re: Crash because of timer - GaGlets(R) - 11.05.2011

in NearbyMessageForPlayers function might be something wrong


Re : Crash because of timer - Vukilore - 11.05.2011

No, in other function that's work perfectly :/


Re: Crash because of timer - black_dota - 11.05.2011

SetTimerEx("Trouvmatf", 9000, false, "d", playerid); //false is defined as 0, so you can put 0 or false, problem is you used "s" instead of "d" for playerid


Re : Crash because of timer - Vukilore - 11.05.2011

Thanks that is the problem !