Help, Please
#1

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

Remove the ; in the if(VehEngine

There are two of them...
Reply
#3

Still Same Error
Reply
#4

Show me the code again.. Nvm

Is vehEngine declared? Make sure it is capitalized correctly.

By declared I mean globally.
Reply
#5

It is the same as last time only I deleted the ";"
Reply
#6

yes it is globaly, And I never touched the piece of code until I started getting errors
Reply
#7

Any code above line 197?
Reply
#8

Grrrr......I AM SICK OF GFs I AM CREATING CUSTOM SCRIPT!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)