[ajuda] "number of arguments does not match definition"
#3

usa assim

pawn Код:
forward ProxDetector(Float:radi, playerid, string[], color);
public ProxDetector(Float:radi, playerid, string[], color)
{
    new Float:Pos[3];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInRangeOfPoint(i, radi, Pos[0], Pos[1], Pos[2]))
            {
                SendClientMessage(i, color, string);
            }
        }
    }
    return 1;
}
ai voce so precisarб por uma cor, testa ai o code fiz aqui agora.

se funcionar fica assim ex:

pawn Код:
ProxDetector(30.0, playerid, string, COLOR_PURPLE);
vк ai ^^

ou entao pode ser isto:

pawn Код:
GetPlayerName(playerid)

// o certo seria

new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
Reply


Messages In This Thread
[ajuda] "number of arguments does not match definition" - by Xpectro - 12.11.2011, 23:16
Re: [ajuda] Warning idiota '-' - by Laercio - 12.11.2011, 23:28
Re: [ajuda] Warning idiota '-' - by Jason` - 12.11.2011, 23:32
Re: [ajuda] Warning idiota '-' - by Xpectro - 13.11.2011, 19:12
Re: [ajuda] "number of arguments does not match definition" - by Jason` - 14.11.2011, 00:16

Forum Jump:


Users browsing this thread: 3 Guest(s)