SA-MP Forums Archive
Help me! - 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 me! (/showthread.php?tid=404643)



Help me! - alexnouabv - 03.01.2013

(3632 -- 3634) : error 017: undefined symbol "vehicle"
(3632 -- 3635) : error 017: undefined symbol "vehicle"
(3635) : error 029: invalid expression, assumed zero
(3635) : fatal error 107: too many error messages on one line

PHP код:
forward CheckGas();
public 
CheckGas()
{
//    new string[128];
    
foreach (Playeri) {
        if(
GetPlayerState(i) == PLAYER_STATE_DRIVER) {
            if(
AdminDuty[i]) continue;
   }
            new 
vehicle GetPlayerVehicleID(i);
            }
            if (
VehicleEngine[vehicle] == && !IsNotAEngineCar(vehicle)) {
            if(
CarInfo[VehicleOwned[vehicle]][cFuel] >= && Gas[vehicle] >= 1) }
                    if(
NoFuel[i] == 0) { 



Re: Help me! - alexnouabv - 03.01.2013

Please (


Re: Help me! - Flyfishes - 03.01.2013

PHP код:
forward CheckGas();
public 
CheckGas()
{
//    new string[128];
    
new vehicle;
    foreach (
Playeri) {
        if(
GetPlayerState(i) == PLAYER_STATE_DRIVER) {
            if(
AdminDuty[i]) continue;
   }
            
vehicle GetPlayerVehicleID(i);
            }
            if (
VehicleEngine[vehicle] == && !IsNotAEngineCar(vehicle)) {
            if(
CarInfo[VehicleOwned[vehicle]][cFuel] >= && Gas[vehicle] >= 1) }
                    if(
NoFuel[i] == 0) { 
I didn't really understand the code as you didn't provide it all. But try this!