mysql check ban
#1

Fxxxxxxxxed
Reply
#2

bump..
Reply
#3

Read the forum rules please. Don't bump your post until 48 (yes, it's changed) hours have passed!

As for the issue, which MySQL plugin are you using?
Reply
#4

Check the mysql log. If there's nothing useful there, debug it.
Reply
#5

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Read the forum rules please. Don't bump your post until 48 (yes, it's changed) hours have passed!

As for the issue, which MySQL plugin are you using?
Sorry, It was 24 hours ;s

BlueG Plugin

There's nothing useful in Debug.. ;\
Reply
#6

Quote:
Originally Posted by MP2
Посмотреть сообщение
If there's nothing useful there, debug it.
^^^^
Reply
#7

This is my ban check, take a look over it.

PHP код:
//This is on playerconnect
    
new query[200], ip[16];
     
GetPlayerName(playeridpnamesizeof pname);
     
GetPlayerIp(playeridip16);
    
format(querysizeof(query), "SELECT * FROM `Banned` WHERE `User` LIKE '%s' OR `IP` LIKE '%s' LIMIT 1"pnameip);
     
mysql_query(query);
     
mysql_store_result();
    if(
mysql_num_rows() >= 1)
     {
        
format(querysizeof(query), "UPDATE `Banned` SET IP='%s' WHERE `User` LIKE '%s'"ippname);
        
mysql_query(query);
        
SendClientMessage(playeridCOLOR_SILVER"You are banned from this server");
        
TogglePlayerControllable(playerid0);
        
Kick(playerid);
     }
    
mysql_free_result(); 
Reply
#8

THANKS!
Reply
#9

Bump. Continue with this question =/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)