does not match definition
#1

Код:
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
Reply
#2

fixed, put a unuseful ) here: format(string, sizeof(string))
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)