21.05.2014, 10:34
ok guys look what i have now and tell me your opinions:
and i am getting those warnings:
line 1779:
line 1771:
when i press my command which the timer should start working ,i dont see nothing the command is not working,
plesae some help thanks
PHP код:
new CountDownVar = 15;
new CountDownTimer;
PHP код:
CountDownTimer = SetTimerEx("CountDown", 1000, true, "i", playerid);
PHP код:
forward CountDown(playerid);
public CountDown(playerid)
{
CountDownVar--;
new str[128];
if(CountDownVar == 0)
{
KillTimer(CountDownTimer);
CountDownVar = 15;
}
else
{
GameTextForPlayer(playerid, "Count Down: %d", CountDownTimer, 1000, 1);
//format(str, sizeof(str), "Count Down: %d", CountDownTimer);
//GameTextForPlayer(str, 1000, 1);
}
return 1;
}
PHP код:
C:\Users\Dimitris\Desktop\server 0.3z\filterscripts\CarSystem.pwn(1779) : warning 202: number of arguments does not match definition
C:\Users\Dimitris\Desktop\server 0.3z\filterscripts\CarSystem.pwn(1771) : warning 204: symbol is assigned a value that is never used: "str"
PHP код:
GameTextForPlayer(playerid, "Count Down: %d", CountDownTimer, 1000, 1);
PHP код:
new str[128];
plesae some help thanks

