[SOLVED] Crash because of timer
#1

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

in NearbyMessageForPlayers function might be something wrong
Reply
#3

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

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

Thanks that is the problem !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)