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
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;
}
}
public ProxRadio(Float:radi, playerid, string[], color)
{
new Float:posx, Float:posy, Float:posz;
GetPlayerPos(playerid, posx, posy, posz);
foreach (Player, i)
{
if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
{
if(IsPlayerInRangeOfPoint(i,radi,posx, posy, posz))
{
if(i != playerid)
{
SendClientMessage(i, color, string);
}
}
}
}
}
ProxRadio(20.0, playerid, string, COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1);
ProxRadio(20.0, playerid, string, COLOR_FADE1);
pawn Код:
pawn Код:
1 minute late. |