07.11.2012, 04:00
Could deal with this error
Which are causing of the line
Код:
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.
Код:
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;
}


