Jump to content
  • 0

pomoc undefined symbol "GetSVarString"


weedenek

Dotaz

Ahoj na netu jsem si našel anticheat pack(mám svůj anticheat ale je zastaralí a chci se podívat jak fungují ty dnešní) a v jednom includu mi to píše undefined symbol "GetSVarString" a já nwm jak se toho zbavit zkoušel jsem new a to taky nepomohlo spíše zhoršilo

error:  C:\pawno\include\Anti-Cheat/BugCheats.inc(103) : error 017: undefined symbol "GetSVarString"
            C:\pawno\include\Anti-Cheat/BugCheats.inc(103) : warning 202: number of arguments does not match definition

 

code:  

public OnPlayerConnect(playerid)
{
    playerData[playerid][falingTicks] = -1;
    playerData[playerid][playerOldZ] = -999.0;
    if(playerData[playerid][isPlayerConnected])
    {
        #if defined OnPlayerBugAttempt
            OnPlayerBugAttempt(playerid, 3);
        #endif
    }

    else playerData[playerid][isPlayerConnected] = true;
    if(IsPlayerNPC(playerid))
    {
        new rAB_PIP[17];
        GetPlayerIp(playerid, rAB_PIP, sizeof(rAB_PIP));
        new rAB_ServerIP[17];
        GetSVarString("bind", rAB_ServerIP, sizeof(rAB_ServerIP));                                                              // zde to dělá neplechu :D
        if (!!strcmp(rAB_PIP, rAB_ServerIP))
        {
            #if defined OnPlayerBugAttempt
                OnPlayerBugAttempt(playerid, 1);
            #endif
        }
    }
    #if defined RAB_OnPlayerConnect
        return RAB_OnPlayerConnect(playerid);
    #else
        return 1;
    #endif
}
 

 

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

Musis sa naucit anglicky ak chces "programovat" :D (warning 202: number of arguments does not match definition) ti pekne vysvetluje kde je chyba, skus jej pochopit :d

Link to comment
Share on other sites

  • 0
před 10minutami, Robin said:

Musis sa naucit anglicky ak chces "programovat" :D (warning 202: number of arguments does not match definition) ti pekne vysvetluje kde je chyba, skus jej pochopit :d

V tom řádku mi něco chybí nebo tam mám špatně něco napsanýho nebo je tam něco navíc 

Link to comment
Share on other sites

  • 0
před 19minutami, Robin said:

Musis sa naucit anglicky ak chces "programovat" :D (warning 202: number of arguments does not match definition) ti pekne vysvetluje kde je chyba, skus jej pochopit :d

Tak jsi mu zrovna dobre neporadil kdyz je vyznamensi ta prvni chyba.

Nezna to funkci GetSVarString v nejvetsi pravdepodobnosti nemas aktualni include a_samp.inc. Zkus si ze sa-mp.com stahnout aktualni server balicek a vem si z neho includy (pawno/includes)

Edited by ATomas
Link to comment
Share on other sites

  • 0
před 4minutami, ATomas said:

Tak jsi mu zrovna dobre neporadil kdyz je vyznamensi ta prvni chyba.

Nezna to funkci GetSVarString v nejvetsi pravdepodobnosti nemas aktualni include a_samp.inc. Zkus si ze sa-mp.com stahnout aktualni server balicek a vem si z neho includy (pawno/includes)

Zkusil jsem to ale udělalo mi to 0kb. amx a nenačetlo se to a compiler nehodil ten copyright řáked ale ta čárka kde by to mělo být bliká 

Link to comment
Share on other sites

  • 0
před 10hodinami, ATomas said:

Tak jsi mu zrovna dobre neporadil kdyz je vyznamensi ta prvni chyba.

Nezna to funkci GetSVarString v nejvetsi pravdepodobnosti nemas aktualni include a_samp.inc. Zkus si ze sa-mp.com stahnout aktualni server balicek a vem si z neho includy (pawno/includes)

Ma tam 3 param. namiesto 2 :mellow: tym padom som myslel ze pawn compiler hlasi "undefined symbol GetSVarString" pro 3 param. ale 2 by to mozno fixlo. Logiku to ma :D .. Pawno sem neotevrel uz hodne dlouho no

Edited by Robin
Link to comment
Share on other sites

  • 0
On 28. 1. 2022 at 9:53, Robin said:

Ma tam 3 param. namiesto 2 :mellow: tym padom som myslel ze pawn compiler hlasi "undefined symbol GetSVarString" pro 3 param. ale 2 by to mozno fixlo. Logiku to ma :D .. Pawno sem neotevrel uz hodne dlouho no

Ale tak odkazuje se na "bind" takze ma se snazi o uplne neco jineho :)

 

// Deprecated:
native GetServerVarAsString(const varname[], buffer[], len);
native GetServerVarAsInt(const varname[]);
native GetServerVarAsBool(const varname[]);
// These are the same 3 functions as above although they avoid the name ambiguity/conflict with the SVar system.
native GetConsoleVarAsString(const varname[], buffer[], len);
native GetConsoleVarAsInt(const varname[]);
native GetConsoleVarAsBool(const varname[]);

 

Edited by ATomas
Link to comment
Share on other sites

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