26.09.2012, 12:08
Any ideas ?
And the error code
Line 21244 is {
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;
}
Код:
error 001: expected token: ")", but found "{"