03.12.2016, 22:08
Lol ! i like the pic xD
anyway
Data load :
i put this after if(rows) { // Exist
anyway
PHP Code:
new query[100], Cache:result;
format(query, 128, "SELECT * FROM `accounts` WHERE `name` = '%s'", GetName(playerid));
result = mysql_query(MySQL, query);
new rows = cache_get_row_count();
cache_delete(result);
if(rows)
{
// Is Exists
else
{
// Is not
}
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");