Jump to content
  • 0

error 017: undefined symbol "InExamen" HELPP


Question

Posted

Salut, am gamemode ul Burned si primesc erorile respective
C:\Users\alexo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(2414) : error 017: undefined symbol "InExamen"
C:\Users\alexo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(2414) : warning 215: expression has no effect
C:\Users\alexo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(2414) : error 001: expected token: ";", but found "]"
C:\Users\alexo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(2414) : error 029: invalid expression, assumed zero
C:\Users\alexo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(2414) : fatal error 107: too many error messages on one line

acesta este cod ul

    DeletePVar(playerid, "Santa");
    if(InGame[playerid] == 1) LeaveGame(playerid);
    if(InExamen[playerid] == 1) FailExamen(playerid);
    new count, names[180];
    if(PlayerInfo[playerid][pWantedLevel] != 0) {
        foreach(Player,i) {
            if(IsACop(i) && CrimInRange(50.0, playerid,i) && OnDuty[i] == 1) {
                count = 1;
                format(string, sizeof(string), "running suspect bonus!");
                GameTextForPlayer(i, string, 3000, 1);
                ConsumingMoney[i] = 1;
                GivePlayerCash(i, PlayerInfo[playerid][pWantedLevel] * 2000);
                Update(i, pCashx);
                UpdateFactionRaport(i, 0);

                format(string, sizeof(string), "Ai primit $%d bonus pentru prinderea suspectului %s.", PlayerInfo[playerid][pWantedLevel] * 2000, GetName(playerid));
                SCM(i, COLOR_DBLUE, string);
                format(names, 256, "%s %s", names, GetName(i));
            }
            if(count == 1) {
                if(ProxDetectorS(30.0, i, playerid)) {
                    format(string, sizeof(string), "* %s is now in jail thanks to: %s", GetName(playerid), names);
                    SCM(i, COLOR_PURPLE, string);
                }
            }
        }
    }

 

Ma puteti ajuta, va rog?

1 answer to this question

Recommended Posts

  • 0
Posted

Salutare,

Eroare primita spune ca nu se gaseste variabila respectiva declarata in gamemode, ori ai luat codul de undeva cu tot ca variabila aceea ori este scrisa gresit (o litera mare ceva gresit i inloc de L 🤷‍♂️)

Daca vrei sa testezi codul in continuare, comenteaza linia cu  //   inainte, asta nu inseamna ca mai departe nu vei primi alte erori.

if(InExamen[playerid] == 1) FailExamen(playerid);

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.