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
#2

ProxRadio stock function?
Reply
#3

Quote:
Originally Posted by Romel
Посмотреть сообщение
ProxRadio stock function?
Yes.

pawn Код:
}
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);
                }
            }
        }
    }
}
Reply
#4

It only wants 1 color
Reply
#5

pawn Код:
ProxRadio(20.0, playerid, string, COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1);
must be

pawn Код:
ProxRadio(20.0, playerid, string, COLOR_FADE1);
EDIT:

1 minute late.
Reply
#6

Quote:
Originally Posted by Romel
Посмотреть сообщение
pawn Код:
ProxRadio(20.0, playerid, string, COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1);
must be

pawn Код:
ProxRadio(20.0, playerid, string, COLOR_FADE1);
EDIT:

1 minute late.
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)