Jump to content
  • 0

error 017: undefined symbol "InExamen" HELPP


viji

Question

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?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.