problem with the mysql admin
#1

Well i made a little system that when you log in rcon you get level 4.

PHP код:
    if(success)
    {
        foreach(new 
playerid Player){
         if(
pInfo[playerid][Level] != 4// to check if the player DOESN'T has the level 4.
        
{
            new 
query[256], str[150];
            
mysql_format(Databasequerysizeof(query), "UPDATE `players` SET `ADMIN` = '%i' WHERE `players`.`ID` = %i"pInfo[playerid][Admin], pInfo[playerid][ID]);
            
pInfo[playerid][Admin] = 4;
            
SendClientMessage(playerid, -"You logged in throught rcon and got automatically level 4 admin.");
            
            if(
pInfo[playerid][Admin] > 4)
               
format(str,sizeof(str), "{0066ff}(admin) %s has logged as server management (rcon)."PlayerName[playerid]);
             
SendMessageToAdmins(str);}
        }
    } 
But when i get admin level 4 on name "test2" then i create another account named "test3" i still got the admin from the old account.
Reply


Messages In This Thread
problem with the mysql admin - by wallen - 07.03.2018, 18:48
Re: problem with the mysql admin - by Sew_Sumi - 07.03.2018, 19:25
Re: problem with the mysql admin - by rfr - 07.03.2018, 19:55
Re: problem with the mysql admin - by wallen - 07.03.2018, 19:57
Re: problem with the mysql admin - by Sew_Sumi - 07.03.2018, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)