Error autofix vehicle
#1

Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(1105) : error 001: expected token: ";", but found "return"
pawn Код:
return 1;
That's the line

This is the whole code
pawn Код:
new fixtimer[MAX_PLAYERS],bool:actived[MAX_PLAYERS];
CMD:autofix(playerid)
{
    if(actived[playerid]) return SendClientMessage(playerid,-1,"disabled"),KillTimer(fixtimer[playerid]),actived[playerid] = false;
    fixtimer[playerid] = SetTimerEx("fixt",1000,true,"i",playerid);
    actived[playerid] = true;
    SendClientMessage(playerid,-1,"actived")
    return 1;
}
forward fixt(playerid);
public fixt(playerid)
{
    if(!IsPlayerInAnyVehicle(playerid)) return 0;
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
Reply


Messages In This Thread
Error autofix vehicle - by JEkvall95 - 29.09.2012, 08:13
Re: Error autofix vehicle - by RedJohn - 29.09.2012, 08:20
Re: Error autofix vehicle - by JEkvall95 - 29.09.2012, 08:22
Re: Error autofix vehicle - by RedJohn - 29.09.2012, 08:23

Forum Jump:


Users browsing this thread: 1 Guest(s)