command not working
#1

pawn Код:
CMD:pickup(playerid, params[])
{
    for(new i = 0; i < MAX_LABELS; i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, LabelInfo[i][LabelX], LabelInfo[i][LabelY], LabelInfo[i][LabelZ]))
        {
            format(GlobalString, sizeof(GlobalString), "%s picks up a weapon shell from the ground.", GetUsername(playerid));
            ProxDetector(15.0, playerid, GlobalString, COLOR_PURPLE);
            Delete3DTextLabel(Text3D:LabelInfo[i][LabelID]);
            break;
        }
        else SendClientMessage(playerid, COLOR_RED, "Error:"COL_WHITE" You're not near anything to pickup."); break;
    }
    return true;
}
No matter how close I am it returns "You're not near anything to pickup".
Reply


Messages In This Thread
command not working - by Jordiee - 12.04.2015, 13:17
Re: command not working - by ATGOggy - 12.04.2015, 13:23
Re: command not working - by Jordiee - 12.04.2015, 13:25
Re: command not working - by Konstantinos - 12.04.2015, 13:25
Re: command not working - by Jordiee - 12.04.2015, 13:28
Re: command not working - by ATGOggy - 12.04.2015, 13:28
Re: command not working - by Jordiee - 12.04.2015, 13:33
Re: command not working - by ATGOggy - 12.04.2015, 13:37
Re: command not working - by Konstantinos - 12.04.2015, 13:37
Re: command not working - by Jordiee - 12.04.2015, 14:23

Forum Jump:


Users browsing this thread: 1 Guest(s)