31.05.2012, 10:31
Код:
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;
}