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

pawn Код:
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: 2 Guest(s)