Weird errors for - command!
#1

Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : error 037: invalid string (possibly non-terminated string)
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : error 017: undefined symbol "ID"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : error 029: invalid expression, assumed zero
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
command:

Код:
CMD:unmute(playerid, params[])
{
 	new id, string[128];
	if(PlayerInfo[playerid][pAdmin] < 1)return 1;
	else if(!sscanf(params, "u", id)) return SendClientMessage(playerid,COLOR_RED,"/unmute [ID/DioImena]);
	else if(Mute[playerid] == 1)return SendClientMessage(playerid,COLOR_RED,"Igrac nije utisan");
	else if(ID == INVALID_PLAYER_ID)return SendClientMessage(playerid, COLOR_WHITE, ""#COL_RED"| "COL_LIGHTBLUE"WS:DM "#COL_RED"| "#COL_WHITE""#COL_BLACK"| "COL_RED"Odbijeno "#COL_BLACK"| "#COL_WHITE"Pogresan ID");
	{
			format(string, sizeof(string), "Admin %s je maknuo mute igracu: %s", PlayerName(playerid), PlayerName(id));
    		SendClientMessage(playerid, COLOR_YELLOW, string);
  			Mute[id] = 0;
	}
	return 1;
}
what i done wrong?
Reply
#2

PHP код:
else if(ID == INVALID_PLAYER_ID) 
USE:

PHP код:
else if(id == INVALID_PLAYER_ID) 
Reply
#3

Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : error 037: invalid string (possibly non-terminated string)
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : error 017: undefined symbol "ID"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : error 029: invalid expression, assumed zero
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
edit:
this is error line

Код:
	else if(!sscanf(params, "u", id)) return SendClientMessage(playerid,COLOR_RED,"/unmute [ID/DioImena]);
Reply
#4

Quote:
Originally Posted by FL3GM4
Посмотреть сообщение
Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(5275) : error 037: invalid string (possibly non-terminated string)


4 Errors.
edit:
this is error line
Well its pretty obvious isnt it?
Код:
	else if(!sscanf(params, "u", id)) return SendClientMessage(playerid,COLOR_RED,"/unmute [ID/DioImena]");
Reply
#5

Maybe for you but not Jim, Else he wouldn't asked -.-"
Reply
#6

resolved ...
Reply
#7

Quote:
Originally Posted by CrazyChoco
Посмотреть сообщение
Maybe for you but not Jim, Else he wouldn't asked -.-"
he just forgot the ending closing "
..

that's all.. no need to get all worked up after this lol
Reply


Forum Jump:


Users browsing this thread: