How can playerid be undefined?
#1

pawn Код:
CMD:healme(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, -2249.1409,2065.4504,6.0776) || IsPlayerInRangeOfPoint(playerid, 7.0, -786.4995,424.1443,11.3629) || IsPlayerInRangeOfPoint(playerid, 7.0, 211.1811,386.8993,24.9100) || IsPlayerInRangeOfPoint(playerid, 7.0, 1530.4073,536.8085,7.4502) || IsPlayerInRangeOfPoint(playerid, 7.0, 2567.0186,476.8986,10.9767))
    {
        SendClientMessage(playerid, COLOR_WHITE, "Your position has been loaded.");
    }
    return 1;
}
I get five errors saying that playerid is not defined correctly, which makes no sense....

Am I doing something wrong, because the wiki says you do it this way

pawn Код:
if(!strcmp("/stadium",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"You are near the Stadium entrance!");
    }
    return 1;
}
Reply


Messages In This Thread
How can playerid be undefined? - by KiNG3 - 23.04.2013, 22:57
Re: How can playerid be undefined? - by mastermax7777 - 23.04.2013, 23:16
Re: How can playerid be undefined? - by KiNG3 - 23.04.2013, 23:25
Re: How can playerid be undefined? - by mastermax7777 - 23.04.2013, 23:28
Re: How can playerid be undefined? - by Onfroi - 23.04.2013, 23:28
Re: How can playerid be undefined? - by DobbysGamertag - 23.04.2013, 23:29
Re: How can playerid be undefined? - by KiNG3 - 23.04.2013, 23:30
Re: How can playerid be undefined? - by KiNG3 - 24.04.2013, 00:22
Re: How can playerid be undefined? - by KiNG3 - 24.04.2013, 00:32

Forum Jump:


Users browsing this thread: 1 Guest(s)