16.09.2011, 00:16
Hello, I get this problem, But I never got it before, it just happend today, I tried copying and pasting the backup but still
Код:
C:\Users\Seanny\Desktop\SAMP\LSC-RP\Gamemodes\lsrl.pwn(197) : error 010: invalid function or declaration C:\Users\Seanny\Desktop\SAMP\LSC-RP\Gamemodes\lsrl.pwn(23474) : error 017: undefined symbol "vehEngine" C:\Users\Seanny\Desktop\SAMP\LSC-RP\Gamemodes\lsrl.pwn(23474) : warning 215: expression has no effect C:\Users\Seanny\Desktop\SAMP\LSC-RP\Gamemodes\lsrl.pwn(23474) : error 001: expected token: ";", but found "]" C:\Users\Seanny\Desktop\SAMP\LSC-RP\Gamemodes\lsrl.pwn(23474) : error 029: invalid expression, assumed zero C:\Users\Seanny\Desktop\SAMP\LSC-RP\Gamemodes\lsrl.pwn(23474) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new string[128];
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(vehEngine[vehicleid] == 0)// Here is Line 23474
{
CarControl(vehicleid, CAR_ENGINE, 0);
SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}HINT:{FFFFFF} {F81414}Type /lights to turn your vehicle lights on/off.{F81414}");
SendClientMessage(playerid, COLOR_RED, "Vehicle Engine is Turned Off, type /engine to turn it on.");
}
else if(vehEngine[vehicleid] == 1)
{
CarControl(vehicleid, CAR_ENGINE, 1);
SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}HINT:{FFFFFF} {F81414}Type /lights to turn your vehicle lights on/off.{F81414}");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Vehicle Engine is Running.");
}
}
pawn Код:
new vehEngine[MAX_VEHICLES];//Here is line 197