24.07.2009, 23:25
Code:
Errors
What I do Wrong?
Код:
public Startup(playerid, vehicleid) { new pveh = GetVehicleModel(GetPlayerVehicleID(playerid)); new newcar = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER || engineOn[vehicleid]) { //I do nothing! } else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && !vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAPlane(newcar) && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar)); { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Type /engine or press SHIFT to start your vehicle!"); TogglePlayerControllable(playerid, false); vehicleEntered[playerid][vehicleid] = true; } else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAPlane(newcar) && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar)) { SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Type /engine or press SHIFT to start your vehicle!"); TogglePlayerControllable(playerid, false); } }
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\SOCRoleplay\gamemodes\larp.pwn(45978) : error 029: invalid expression, assumed zero C:\Program Files\Rockstar Games\GTA San Andreas\SOCRoleplay\gamemodes\larp.pwn(45978) : warning 215: expression has no effect C:\Program Files\Rockstar Games\GTA San Andreas\SOCRoleplay\gamemodes\larp.pwn(45978) : error 001: expected token: ";", but found "]" C:\Program Files\Rockstar Games\GTA San Andreas\SOCRoleplay\gamemodes\larp.pwn(45978) : error 029: invalid expression, assumed zero C:\Program Files\Rockstar Games\GTA San Andreas\SOCRoleplay\gamemodes\larp.pwn(45978) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.