pawno errors
#2

Try this. You forgot too add a range parameter on IsPlayerInRangeOfPoint.

pawn Код:
#include <a_samp>

#define COLOR_RED 0xAA3333AA

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/pay", cmdtext, true))
    {
        if(IsPlayerInRangeOfPoint(playerid,50.0/*range*/,1110.4412,-1738.2471,13.4317))
            return SendClientMessage(playerid,COLOR_RED,"You are too far from the gate to pay");
        if(GetPlayerMoney(playerid, < 500))
            return SendClientMessage(playerid,COLOR_RED,"You do not have enough money");
        if(GetPlayerMoney(playerid, > 500))
            return SendClientMessage(playerid,COLOR_RED,"You have just paid and the gate is open");

        MoveObject(980, 1101.7249755859, -1741.2767333984, 15.273958206177,2.0)
        return 1;
     }
     return 0;
}
Reply


Messages In This Thread
pawno errors - by Tom1412 - 23.10.2010, 16:58
Re: pawno errors - by Backwardsman97 - 23.10.2010, 17:10
Re: pawno errors - by KaleOtter - 23.10.2010, 17:11
Re: pawno errors - by Tom1412 - 23.10.2010, 17:18
Re: pawno errors - by Danny - 23.10.2010, 17:20
Re: pawno errors - by Tom1412 - 23.10.2010, 17:22
Re: pawno errors - by willsuckformoney - 23.10.2010, 17:31
Re: pawno errors - by Tom1412 - 23.10.2010, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)