MySQL Issues
#7

Lol ! i like the pic xD

anyway
PHP Code:
    new query[100], Cache:result;
        
format(query128"SELECT * FROM `accounts` WHERE `name` = '%s'"GetName(playerid));
       
result =  mysql_query(MySQLquery);
    new 
rows cache_get_row_count();
    
cache_delete(result);
    if(
rows)
    {
            
// Is Exists
        
else 
        {
            
// Is not 
         

Data load :

PHP Code:
        cache_get_field_content(0"password"PlayerInfo[playerid][pPass]);
        
PlayerInfo[playerid][pKills] = cache_get_field_content_int(0"kills");
        
PlayerInfo[playerid][pDeaths] = cache_get_field_content_int(0"deaths");
        
PlayerInfo[playerid][pCash] = cache_get_field_content_int(0"cash");
        
PlayerInfo[playerid][pKicks] = cache_get_field_content_int(0"kicks");
        
PlayerInfo[playerid][pAdmin] = cache_get_field_content_int(0"admin");
        
PlayerInfo[playerid][pBans] = cache_get_field_content_int(0"bans");
        
PlayerInfo[playerid][pSkin] = cache_get_field_content_int(0"skin"); 
i put this after if(rows) { // Exist
Reply


Messages In This Thread
MySQL Issues - by Yaa - 03.12.2016, 21:44
Re: MySQL Issues - by oMa37 - 03.12.2016, 21:47
Re: MySQL Issues - by Yaa - 03.12.2016, 21:53
Re: MySQL Issues - by oMa37 - 03.12.2016, 21:56
Re: MySQL Issues - by Yaa - 03.12.2016, 22:01
Re: MySQL Issues - by oMa37 - 03.12.2016, 22:05
Re: MySQL Issues - by Yaa - 03.12.2016, 22:08
Re: MySQL Issues - by oMa37 - 03.12.2016, 22:17
Re: MySQL Issues - by Yaa - 03.12.2016, 22:29

Forum Jump:


Users browsing this thread: 2 Guest(s)