i have created an anti- hacker security system to my server
#1

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(playeridIPPsizeof(IPP));
SendRconCommand("banip %s"IPP); <<<<<<<<Warning (warning 202number of arguments does not match definition
what's the problem with this?
Reply
#2

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
Reply
#3

big thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)