15.07.2016, 02:01
So, I got this problem with my day literally spamming when the timer has loaded. Why does it do that?
pawn Код:
forward payday(playerid);
public payday(playerid)
{
GivePlayerMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_GREEN, "_______ BANK OF LOS SANTOS _______ ");
SendClientMessage(playerid, COLOR_GREEN, "BANK:{FFFFFF} You've received 500$ from the goverment.");
SendClientMessage(playerid, COLOR_GREEN, "___________________________________");
GameTextForPlayer(playerid, "~w~PAYDAY, USD 500.", 5000, 4);
SetTimerEx("payday", 560, true, "i", playerid);
printf("SERVER: Payday has been executed. :)");
return 1;
}
pawn Код:
SetTimerEx("payday", 560, true, "i", playerid);