cmd problem
#1

Код:
C:\Users\Hellman\Desktop\Rebound Roleplay server\pawno\include\/CRP/Commands/radio.pwn(14) : warning 202: number of arguments does not match definition
C:\Users\Hellman\Desktop\Rebound Roleplay server\pawno\include\/CRP/Commands/radio.pwn(14) : warning 202: number of arguments does not match definition
C:\Users\Hellman\Desktop\Rebound Roleplay server\pawno\include\/CRP/Commands/radio.pwn(14) : warning 202: number of arguments does not match definition
C:\Users\Hellman\Desktop\Rebound Roleplay server\pawno\include\/CRP/Commands/radio.pwn(14) : warning 202: number of arguments does not match definition
pawn Код:
CMD:r(playerid, params[])
{
    new text[128],string[128],sendername[MAX_PLAYER_NAME];
    if(sscanf(params, "s[128]", text)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /radio [text]");
    else
    {
        if(PlayerCuffed[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "You can not do this while cuffed."); return 1; }
        if(Died[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "Cannot use this command while dead."); return 1; }
        if (PlayerInfo[playerid][pFaction] == 0) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must be in a faction to use this.");
        format(sendername, sizeof(sendername), "%s", PlayerNameEx(playerid));
        GiveNameSpace(sendername);
        format(string, sizeof(string), "** %s(radio): %s, over. **", sendername, text);
        SendFactionMessage(PlayerInfo[playerid][pFaction],0x8080FF96,string);
       Line 14 ProxRadio(20.0, playerid, string, COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1);
    }
    return 1;
}
Reply


Messages In This Thread
cmd problem - by N0FeaR - 31.05.2012, 10:31
Re: cmd problem - by JaKe Elite - 31.05.2012, 10:37
Re: cmd problem - by N0FeaR - 31.05.2012, 10:42
Re: cmd problem - by [ABK]Antonio - 31.05.2012, 10:43
Re: cmd problem - by JaKe Elite - 31.05.2012, 10:44
Re: cmd problem - by N0FeaR - 31.05.2012, 10:47

Forum Jump:


Users browsing this thread: 2 Guest(s)