new CountDownVar = 15;
new CountDownTimer;
CountDownTimer = SetTimer("CountDown" ,1000, false);
forward CountDown(playerid);
public CountDown(playerid)
{
CountDownVar--;
new str[128];
if(CountDownVar == 0)
{
KillTimer(CountDownTimer);
CountDownVar = 15;
}
else
{
GameTextForPlayer(playerid, "Count Down: %d", CountDownTimer, 8000, 1);
//format(str, sizeof(str), "Count Down: %d", CountDownTimer);
//GameTextForPlayer(str, 1000, 1);
}
return 1;
}
some help please
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;
}
SetTimerEx("CountDown", 1000, true, "i", playerid);
C:\Users\Дзмзфсзт\Desktop\server 0.3z\filterscripts\CarSystem.pwn(1779) : warning 202: number of arguments does not match definition
C:\Users\Дзмзфсзт\Desktop\server 0.3z\filterscripts\CarSystem.pwn(1771) : warning 204: symbol is assigned a value that is never used: "str"
GameTextForPlayer(playerid, "Count Down: %d", CountDownTimer, 1000, 1);
new str[128];
tmp[256]
new str[100];
CountDownTimer = SetTimer("CountDown" ,1000, false);
CountDownTimer = SetTimer("CountDown" ,1000, true);
new CountDownVar = 15;
new CountDownTimer;
CountDownTimer = SetTimerEx("CountDown", 1000, true, "i", playerid);
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;
}
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"
GameTextForPlayer(playerid, "Count Down: %d", CountDownTimer, 1000, 1);
new str[128];
forward CountDown(playerid);
public CountDown(playerid)
{
CountDownVar--;
new str[128];
if(CountDownVar == 0)
{
KillTimer(CountDownTimer);
CountDownVar = 15;
}
else
{
format(str, sizeof(str), "Count Down: %d", CountDownVar);
GameTextForPlayer(str, 1000, 1);
}
return 1;
}
new CountDownVar = 15;
new CountDownTimer;
CountDownTimer = SetTimerEx("CountDown", 1000, true, "i", playerid);
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);
}
return 1;
}
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"
GameTextForPlayer(playerid, "Count Down: %d", CountDownTimer, 1000, 1);
new str[128];
|
pawn Код:
|
C:\Users\Dimitris\Desktop\server 0.3z\filterscripts\CarSystem.pwn(1781) : error 035: argument type mismatch (argument 1)
GameTextForPlayer(str, 1000, 1);
GameTextForPlayer(playerid, str, 1000, 4);