Expected token ) but found { ?
#1

Any ideas ?
pawn Код:
command(refuel, playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -173.0663,2686.0369,62.6836) || IsPlayerInRangeOfPoint(playerid, 2, -754.8677,3016.7512,40.9653)
    { // Line causing the error.
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFC800FF,"You are not in an vehicle!");
        if(isrefuelling[playerid]) return SendClientMessage(playerid,0xFFC800FF,"You are already refuelling!");
        if(GetPlayerMoney(playerid) - 5 <0) return SendClientMessage(playerid,0xFFC800FF,"You dont have enough money!");
        GivePlayerMoney(playerid,-80);
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid,0);
        isrefuelling[playerid] = 1;
        TextDrawSetString(td_fuel[playerid],"Refueling your vehicle.");
        SetTimerEx("timer_refuel",4500,false,"i",playerid);
        return 1;
    }
    return 1;
}
And the error code
Код:
 error 001: expected token: ")", but found "{"
Line 21244 is {
Reply


Messages In This Thread
Expected token ) but found { ? - by Benzke - 26.09.2012, 12:08
Re: Expected token ) but found { ? - by newbienoob - 26.09.2012, 12:09
Re: Expected token ) but found { ? - by Benzke - 26.09.2012, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)