i have created an anti- hacker security system to my server - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: i have created an anti- hacker security system to my server (
/showthread.php?tid=201421)
i have created an anti- hacker security system to my server -
LZLo - 21.12.2010
i have created an anti- hacker security system to my server
it csauses with 2 warnings
when you fail the stuff you get an ip ban
PHP код:
new IPP[16];
GetPlayerIp(playerid, IPP, sizeof(IPP));
SendRconCommand("banip %s", IPP); <<<<<<<<Warning (warning 202: number of arguments does not match definition)
what's the problem with this?
Re: i have created an anti- hacker security system to my server -
Mauzen - 21.12.2010
You cant use the %s, %d, ... format symbols in every command, so you have to create the string you want to have with 'format' first
pawn Код:
new IPP[16], text[24];
GetPlayerIp(playerid, IPP, sizeof(IPP));
format(text, sizeof(text), "banip %s", IPP); //this formats the string you want to have
SendRconCommand(text); //and saves it to text
Re: i have created an anti- hacker security system to my server -
LZLo - 21.12.2010
big thx