Fuel Error
#1

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
Reply
#2

At the top of the script put
pawn Код:
Fuel[andthedefinethatgoeshere];
Reply
#3

Quote:
Originally Posted by Swift_
At the top of the script put
pawn Код:
Fuel[andthedefinethatgoeshere];
I did

Fuel[vehicleid];
and didnt work.
Reply
#4

Put something like "new Fuel[MAX_VEHICLES];" on the top, if its correctly put, it should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)