14.01.2015, 22:09
PHP код:
else
{
new query[200],param,Cache:cquery;
mysql_format(handle, query, sizeof(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,query, sizeof(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;
}