[Help]Problem with cache_get_row_int [ REP ++ ]
#3

PHP код:
else
{
    new 
query[200],param,Cache:cquery;
    
    
mysql_format(handlequerysizeof(query), "SELECT playerID FROM playeraccounts WHERE playerName = '%e' LIMIT 0,1",playerVariables[playerid][pSelected]);
    
cquery=mysql_query(handle,query);
    
param=cache_get_field_content_int(0,"playerID");
    
cache_delete(cuqery);
    
mysql_format(handle,querysizeof(query), "SELECT playerDays FROM playeraccounts WHERE playerID = '%d' LIMIT 0,1",param);
    
cquery=mysql_query(handle,query);
    
param=cache_get_field_content_int(0,"playerDays");
    
cache_delete(cquery);
    
format(query,sizeof(query),"%s has left the faction with %d days.",playerVariables[playerid][pSelected],param);
    
SCM(playerid,-1,query);
    return 
1;

Reply


Messages In This Thread
[Help]Problem with cache_get_row_int [ REP ++ ] - by buburuzu19 - 14.01.2015, 19:14
Re: [Help]Problem with cache_get_row_int [ REP ++ ] - by xVIP3Rx - 14.01.2015, 20:31
Re: [Help]Problem with cache_get_row_int [ REP ++ ] - by CodeStyle175 - 14.01.2015, 22:09

Forum Jump:


Users browsing this thread: 2 Guest(s)