does not match definition - 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)
+--- Thread: does not match definition (
/showthread.php?tid=653373)
does not match definition -
enzulikeS - 02.05.2018
Код:
forward CheckTimer();
public CheckTimer() {
new string[256];
if(RestartTime > 0 ){
RestartTime --;
if(RestartTime/60 >1) format(string, sizeof(string)), "Restart-ul se va da peste ~y~%d minute~w~~n~Motiv: %s", RestartTime/60, RestartReason);
else if(RestartTime/60 == 1) format(string, sizeof(string)), "Restart-ul se va da peste ~y~%d minute~w~~n~Motiv: %s", RestartTime/60, RestartReason);
else if(RestartTime/60 == 0)format(string, sizeof(string)), "Restart-ul se va da peste ~y~%d minute~w~~n~Motiv: %s", RestartTime/60, RestartReason);
TextDrawSetString(RestartTD, string);
TextDrawShowForAll(RestartTD);
if(RestartTime == 5) KickAll();
if(RestartTime == 0) GameModeExit();
}
return 1;
}
D:\server\gamemodes\ExtremeGame.pwn(22319) : warning 202: number of arguments does not match definition
D:\server\gamemodes\ExtremeGame.pwn(22319) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(22319) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(22319) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(22319) : error 001: expected token: ";", but found ")"
D:\server\gamemodes\ExtremeGame.pwn(22319) : error 029: invalid expression, assumed zero
D:\server\gamemodes\ExtremeGame.pwn(22319) : warning 215: expression has no effect
help please
Re: does not match definition -
enzulikeS - 02.05.2018
fixed, put a unuseful ) here: format(string, sizeof(string))