pawno errors
#7

pawn Код:
//first you got a function wrong its
//IsPlayerInRangeOfPoint(playerid,Range,X,Y,Z);

//and  this should fix it
if (strcmp(cmdtext, "/pay", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,90,1110.4412,-1738.2471,13.4317)) return SendClientMessage(playerid,red,"You are too far from the gate to pay");
        if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid,red,"You do not have enough money");
        if(GetPlayerMoney(playerid) > 500)
        {
         SendClientMessage(playerid,red,"You have just paid and the gate is open");
         MoveObject(980, 1101.7249755859, -1741.2767333984, 15.273958206177,2.0);
         GivePlayerMoney(playerid,-500);
        }
        return 1;
     }
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)