Little Help
#1

Hello everybody I am making my own Ban system...So I need one solution nothing more...
Will this work in code? :
pawn Код:
if(!mysql_num_rows())
{
mysql_free_result();
format(String, sizeof(String), "[!] Our database didn`t find nothing !", pName[id]);
SendClientMessage(playerid, color_orange, String);
}
else if(mysql_num_rows() != 0)
{
format(String, sizeof(String), "This name %s is in database!", pName[id]);
SendClientMessage(playerid, color_blue, String);
format(String,sizeof(String),"DELETE * FROM `sampbans` WHERE `banusername` = '%s'",pName[id]);
mysql_query(String);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)