19.03.2012, 08:57
Hey, i need some help.. Here it is
Errors =/
Код:
if (PRESSED(KEY_JUMP)) && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new engine,lights,alarm,doors,bonnet,boot,objective,vehicleid; vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510) return SendClientMessageEx(playerid,COLOR_WHITE,"This command can't be used in this vehicle."); GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); if(engine == VEHICLE_PARAMS_ON) { SetVehicleEngine(vehicleid, playerid); } else if((engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET)) { SendClientMessageEx(playerid, COLOR_WHITE, "Vehicle engine starting, please wait..."); SetTimerEx("SetVehicleEngine", 1500, 0, "dd", vehicleid, playerid); } }
Код:
C:\Users\School\Desktop\samp03dsvr_win32 (1)\gamemodes\3pkrp1.1.pwn(12615) : error 029: invalid expression, assumed zero C:\Users\School\Desktop\samp03dsvr_win32 (1)\gamemodes\3pkrp1.1.pwn(12615) : warning 215: expression has no effect C:\Users\School\Desktop\samp03dsvr_win32 (1)\gamemodes\3pkrp1.1.pwn(12615) : error 001: expected token: ";", but found ")" C:\Users\School\Desktop\samp03dsvr_win32 (1)\gamemodes\3pkrp1.1.pwn(12615) : error 029: invalid expression, assumed zero C:\Users\School\Desktop\samp03dsvr_win32 (1)\gamemodes\3pkrp1.1.pwn(12615) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.