NearByMessage
#1

Код:
error 035: argument type mismatch (argument 2)
This is the line
pawn Код:
NearByMessage(playerid, COLOR_WHITE, string, 12);
this is the stock i made for it
pawn Код:
}
stock NearByMessage(playerid, color, string[], Float:Range = 10.0)
{
    new Float:pPos[3];
    GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);

    foreach(Player, i)
    {
        if(IsPlayerInRangeOfPoint(i, Range, pPos[0], pPos[1], pPos[2]) && GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
        {
            SendClientMessage(i, color, string);
        }
    }
    return 1;
}
Help this error...
Reply
#2

stock NearByMessage(playerid, color, string[], Float:Range)
Reply
#3

Nope, same errors..
Reply
#4

EDIT: Can you show your #define COLOR_WHITE?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)