Error 017: undefined symbol "AC_BS_SetPlayerMoney"
#1

Hello everyone !

I just installed the Balkan AntiCheat, but I have a problem when I compile :


Код:
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\lairp.pwn(6197) : error 017: undefined symbol "AC_BS_SetPlayerMoney"
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\lairp.pwn(56883) : error 017: undefined symbol "AC_BS_SetPlayerMoney"
Line 56883
pawn Код:
public SafeAC_BS_SetPlayerMoney(playerid,amount)
{
    if(IsPlayerConnected(playerid))
    {
        AC_BS_SetPlayerMoney(playerid);
        AC_BS_GivePlayerMoney(playerid,amount);
        PlayerInfo[playerid][pCash]=amount;
        return 1;
    }
    return 0;
}

Line 6197
pawn Код:
safeAC_BS_SetPlayerMoney(playerid);


Can you please help me ?
Reply
#2

Like the compiler says. The function safeAC_BS_SetPlayerMoney(playerid); is not defined in your script.
You should script a new stock function.
pawn Код:
stock AC_BS_SetPlayerMoney(playerid)
{
    // What should happen here.
    return 1;
}
Reply
#3

Quote:
Originally Posted by MouseBreaker
Посмотреть сообщение
Like the compiler says. The function safeAC_BS_SetPlayerMoney(playerid); is not defined in your script.
You should script a new stock function.
pawn Код:
stock AC_BS_SetPlayerMoney(playerid)
{
    // What should happen here.
    return 1;
}
I'm a very beginner in scripting, could you help me ?




Quote:
Originally Posted by ******
Посмотреть сообщение
PAWN is case-sensitive.
Hmm. Yes. The thing is, where is it broken ?
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
Also, the parameters are nothing alike. The first has two, the second has only one.
I thank you one more time ****** for helping.
No more errors, only 2 warnings at the same lines, can you help for this please ? :


Код:
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\lairp.pwn(6197) : warning 202: number of arguments does not match definition
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\lairp.pwn(56883) : warning 202: number of arguments does not match definition
Reply
#5

Oh yes.
But when I try this :

pawn Код:
SafeAC_BS_SetPlayerMoney(playerid,amount);
I have this error :
Код:
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\lairp.pwn(6197) : error 017: undefined symbol "amount"

And when I use this :
pawn Код:
SafeAC_BS_SetPlayerMoney(playerid);
I have this warning :
Код:
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\lairp.pwn(6197) : warning 202: number of arguments does not match definition
I got this error :
Reply
#6

Hmm nevermind that was a huge mistake of me. I replaced SetPlayerMoney with ResetPlayerMoney. Just did a wrong copy/paste.


I've now an other problem, may I ask you some help on it please ?
When I use Balkan, as one command is using ZCMD, my entire GM is suffering and any / command will not work anymore. Can you help me, tell me how to translate it please ? I would like to learn this.

pawn Код:
CMD:anticheat(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))
    {
        SendClientMessage(playerid, BELA, "Ceci est un test!");
        return 1;
    }
    new string[900];
    new komande[] = "1. Mettre ON/OFF: Ping trop haut\n2. Mettre ON/OFF: Anti JetPack-a\n3. Mettre ON/OFF: Anti Speed Hack\n4. Mettre ON/OFF: Armes cheatйs\n5. Mettre ON/OFF: Anti RCON Hack\n6. Mettre ON/OFF: Anti Injures\n7. Mettre ON/OFF: Anti Drive By\n8. Mettre ON/OFF: Anti Bunny Hop\n9. Mettre ON/OFF: Anti AirBrake\n10. Mettre ON/OFF: Anti Argent Hack";
    new komande2[] = "\n11. Mettre ON/OFF: Anti Cheat Vie\n12. Mettre ON/OFF: Anti Cheat Armure\n13. Mettre ON/OFF: Anti Cheat Intйrieur\n14. Mettre ON/OFF: Anti Fly Cheat\n15. Mettre ON/OFF: Anti Tйlйportation[1]\n16. Mettre ON/OFF: Anti Tйlйportation[2] \n17. Mettre ON/OFF: Anti Rйparation Vйhicule(Cheat)\n18. Mettre ON/OFF: Anti Spam\n19. Mettre ON/OFF: Anti AFK";
    format(string, sizeof(string),"%s %s",komande,komande2);
    ShowPlayerDialog(playerid, 19999, DIALOG_STYLE_LIST, "[Setting AntiCheat]",string, "Ok", "Cancle");
    return 1;
}
Reply
#7

or change that command to strcmp...
Reply
#8

That's what I'm looking for : changing it to strcmp.
Because I've sooooo many commands that it would be impossible for a newbie to do it at the moment. I'll have to wait and learn it.

To change it to strcmp, what do I need ?

Edit :
I changed
pawn Код:
CMD:anticheat(playerid, params[])
To

pawn Код:
if(strcmp(cmd, "/anticheat", true) == 0)

And I got there errors :

Код:
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(257) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(314) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(351) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(414) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(467) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(496) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(507) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(576) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(1149) : error 010: invalid function or declaration
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(1151) : error 010: invalid function or declaration
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(1154) : error 010: invalid function or declaration
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(1159) : error 021: symbol already defined: "format"
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(1161) : error 010: invalid function or declaration
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(1421) : warning 203: symbol is never used: "komande"
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(1421) : warning 203: symbol is never used: "komande2"
C:\Users\Geo\Desktop\Ca marche\a jour\filterscripts\ACBS.pwn(1421) : warning 203: symbol is never used: "string"


First warnings :
pawn Код:
new string[128];


Lines 1149 to 1162
pawn Код:
if(strcmp(cmd, "/anticheat", true) == 0)
{
    if(!IsPlayerAdmin(playerid))
    {
        SendClientMessage(playerid, BELA, "Ceci est un test!");
        return 1;
    }
    new string[900];
    new komande[] = "1. Mettre ON/OFF: Ping trop haut\n2. Mettre ON/OFF: Anti JetPack-a\n3. Mettre ON/OFF: Anti Speed Hack\n4. Mettre ON/OFF: Armes cheatйs\n5. Mettre ON/OFF: Anti RCON Hack\n6. Mettre ON/OFF: Anti Injures\n7. Mettre ON/OFF: Anti Drive By\n8. Mettre ON/OFF: Anti Bunny Hop\n9. Mettre ON/OFF: Anti AirBrake\n10. Mettre ON/OFF: Anti Argent Hack";
    new komande2[] = "\n11. Mettre ON/OFF: Anti Cheat Vie\n12. Mettre ON/OFF: Anti Cheat Armure\n13. Mettre ON/OFF: Anti Cheat Intйrieur\n14. Mettre ON/OFF: Anti Fly Cheat\n15. Mettre ON/OFF: Anti Tйlйportation[1]\n16. Mettre ON/OFF: Anti Tйlйportation[2] \n17. Mettre ON/OFF: Anti Rйparation Vйhicule(Cheat)\n18. Mettre ON/OFF: Anti Spam\n19. Mettre ON/OFF: Anti AFK";
    format(string, sizeof(string),"%s %s",komande,komande2);
    ShowPlayerDialog(playerid, 19999, DIALOG_STYLE_LIST, "[Setting AntiCheat]",string, "Ok", "Cancle");
    return 1;
}
Reply
#9

Because I already have an host and I'm paying for it, so I just need a proper anticheat to avoid cheating kiddies.
I don't know much things in samp servers, or pawn etc...

I just would like to understand this, please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)