Command problem.
#3

Good.. i fixed it but i have a new problem now.. when i walk into a checkpoint nothing of what i stated on OnPlayerEnterCheckpoint is happening:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if (IsPlayerInRangeOfPoint(playerid, 1.0, 2362.9297,-1643.3599,14.3082)) //Checkpoint 1
    {
        GivePlayerMoney(playerid, 2489);
        DisablePlayerCheckpoint(playerid);
        SendClientMessage(playerid, COLOR_LIGHTRED, "You have delivered the pizza before it went cold, go and get more !");
        DeletePVar(playerid, "Delivering");
    }
    else if (IsPlayerInRangeOfPoint(playerid, 1.0,2523.2732,-1679.4453,15.4970)) //Checkpoint 2
    {
        GivePlayerMoney(playerid, 3000);
        DisablePlayerCheckpoint(playerid);
        SendClientMessage(playerid, COLOR_LIGHTRED, "You have delivered the pizza before it went cold, go and get more !");
        DeletePVar(playerid, "Delivering");
    }
    else if (IsPlayerInRangeOfPoint(playerid, 1.0, 2178.5088,-1660.3746,14.9678)) //Checkpoint 3
    {
        GivePlayerMoney(playerid, 1258);
        DisablePlayerCheckpoint(playerid);
        SendClientMessage(playerid, COLOR_LIGHTRED, "You have delivered the pizza before it went cold, go and get more !");
        DeletePVar(playerid, "Delivering");
    }
    return 1;
}
Any idea why is that happening ?
Reply


Messages In This Thread
Command problem. - by ZackBoolaro - 24.12.2012, 15:51
Re: Command problem. - by DaRk_RaiN - 24.12.2012, 15:55
Re: Command problem. - by ZackBoolaro - 24.12.2012, 16:06
Re: Command problem. - by DaRk_RaiN - 24.12.2012, 16:10
Re: Command problem. - by ZackBoolaro - 24.12.2012, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)