Fuel Error - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fuel Error (
/showthread.php?tid=83267)
Fuel Error -
L30 - 24.06.2009
Ok, well I wanted to add this fuel system to my script I found on here, but I didn't want the rest of the things that where in the FS
This is the error I get.
Код:
C:\Documents and Settings\L30\Desktop\RP\gamemodes\CTP.pwn(10718) : error 017: undefined symbol "Fuel"
C:\Documents and Settings\L30\Desktop\RP\gamemodes\CTP.pwn(10718) : warning 215: expression has no effect
C:\Documents and Settings\L30\Desktop\RP\gamemodes\CTP.pwn(10718) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\L30\Desktop\RP\gamemodes\CTP.pwn(10718) : error 029: invalid expression, assumed zero
C:\Documents and Settings\L30\Desktop\RP\gamemodes\CTP.pwn(10718) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Can someone please help me
Whats on that line
Код:
if(Fuel[vehicleid] <= 0){ RemovePlayerFromVehicle(i); SendClientMessage(i, COLOR_YELLOW, "[FUEL]: There is no fuel in the vehicle."); }
Where I got the FS
http://forum.sa-mp.com/index.php?topic=104566.0
Re: Fuel Error -
Grim_ - 24.06.2009
At the top of the script put
pawn Код:
Fuel[andthedefinethatgoeshere];
Re: Fuel Error -
L30 - 24.06.2009
Quote:
Originally Posted by Swift_
At the top of the script put
pawn Код:
Fuel[andthedefinethatgoeshere];
|
I did
Fuel[vehicleid];
and didnt work.
Re: Fuel Error -
Chaprnks - 24.06.2009
Put something like "new Fuel[MAX_VEHICLES];" on the top, if its correctly put, it should work.