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 :
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;
}