*** This topic title is not descriptive.
#1

Could deal with this error
Код:
D:\Xtreme Gaming Roleplay\gamemodes\xg-rp.pwn(9742) : error 001: expected token: ")", but found "-identifier-"
D:\Xtreme Gaming Roleplay\gamemodes\xg-rp.pwn(9742) : warning 215: expression has no effect
D:\Xtreme Gaming Roleplay\gamemodes\xg-rp.pwn(9742) : error 001: expected token: ";", but found "]"
D:\Xtreme Gaming Roleplay\gamemodes\xg-rp.pwn(9742) : error 029: invalid expression, assumed zero
D:\Xtreme Gaming Roleplay\gamemodes\xg-rp.pwn(9742) : fatal error 107: too many error messages on one line

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


4 Errors.
Which are causing of the line
Код:
CMD:r(playerid, params[])
{
	new string[128];
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(!IsACop(playerid) && !IsAGov(playerid) && !IsAFBI(playerid) && !IsAMedic(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not in a faction!");
	if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: (/r)adio [text]");
	if(AntiAdv(playerid, params)) return 1;
 	if(PlayerInfo[playerid][pFacDiv]){format(string, sizeof(string), "** [%s] %s %s: %s, over.", RPFDN(playerid), RPFRN(playerid), RPN(playerid), params);}
 	if(PlayerInfo[playerid]pFac] == 1) // The only line causing problem.
	format(string, sizeof(string), "** %s %s: %s, over.", RPFRN(playerid), RPN(playerid), params);
	SendPlayerFactionMessage(playerid, 0, COLOR_BBLUE, string);
 	if(PlayerInfo[playerid]pFac] == 6)
	format(string, sizeof(string), "** %s %s: %s, over.", RPFRN(playerid), RPN(playerid), params);
	SendPlayerFactionMessage(playerid, 0, COLOR_FBIRADIO, string);
	else if(PlayerInfo[playerid]pFac] == 5)
	format(string, sizeof(string), "** %s %s: %s, over.", RPFRN(playerid), RPN(playerid), params);
	SendPlayerFactionMessage(playerid, 0, COLOR_MEDICC, string);
	else if(PlayerInfo[playerid]pFac] == 4)
	format(string, sizeof(string), "** %s %s: %s, over.", RPFRN(playerid), RPN(playerid), params);
	SendPlayerFactionMessage(playerid, 0, COLOR_ORANGE, string);
	return 1;
}
Reply


Messages In This Thread
*** This topic title is not descriptive. - by Laure - 07.11.2012, 04:00
Re: Errors. - by Glad2BeHere - 07.11.2012, 04:12
Re: Errors. - by DBan - 07.11.2012, 04:13
Re: Errors. - by Laure - 07.11.2012, 04:19
Re: Errors. - by DBan - 07.11.2012, 04:23
Re: Errors. - by Laure - 07.11.2012, 04:24
Re: Errors. - by Glad2BeHere - 07.11.2012, 04:28
Re: Errors. - by DBan - 07.11.2012, 04:29
Re: Errors. - by Laure - 07.11.2012, 04:32
Re: Errors. - by Glad2BeHere - 07.11.2012, 04:39

Forum Jump:


Users browsing this thread: 1 Guest(s)