Help, Please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help, Please (
/showthread.php?tid=283642)
Help, Please -
seanny - 16.09.2011
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
Re: Help, Please -
Dr - 16.09.2011
Remove the ; in the if(VehEngine
There are two of them...
Re: Help, Please -
seanny - 16.09.2011
Still Same Error
Re: Help, Please -
Dr - 16.09.2011
Show me the code again.. Nvm
Is vehEngine declared? Make sure it is capitalized correctly.
By declared I mean globally.
Re: Help, Please -
seanny - 16.09.2011
It is the same as last time only I deleted the ";"
Re: Help, Please -
seanny - 16.09.2011
yes it is globaly, And I never touched the piece of code until I started getting errors
Re: Help, Please -
=WoR=Varth - 16.09.2011
Any code above line 197?
Re: Help, Please -
seanny - 16.09.2011
Grrrr......I AM SICK OF GFs I AM CREATING CUSTOM SCRIPT!