R34 warnings in mysql_log (no active cache)
#2

Could you try:

PHP код:
stock LoadPlayerData(playerid)
{
    if(!
IsPlayerConnected(playerid)) return 1;
    new 
Query[200];
    
mysql_format(DBQuerysizeof(Query), "SELECT * FROM `players` WHERE `Vardas` = '%s'"GetPlayerNameEx(playerid));
    
mysql_tquery(DBQuery"OnPlayerLoad""i"playerid);
    return 
1;
}
forward OnPlayerLoad(playerid);
public 
OnPlayerLoad(playerid){
    new
        
rows,
        
fields,
        
FloatP_Pos[3];
    
cache_get_data(rowsfieldscon);
    if(
rows){
        
SetPlayerVirtualWorld(playeridcache_get_field_content_int(0"World"));
        
SetPlayerInterior(playeridcache_get_field_content_int(0"Interior"));
        
SetPlayerDrunkLevel(playeridcache_get_field_content_int(0"Girtumas"));
        
SetPlayerMoneyA(playeridcache_get_field_content_int(0"MoneyPocket"));
        
PlayerInfo[playerid][Ieskomas]         = cache_get_field_content_int(0"Wanted");
        
PlayerInfo[playerid][Experience]     = cache_get_field_content_int(0"Xp");
        
PlayerInfo[playerid][AdminLevel]     = cache_get_field_content_int(0"Admin");
        
P_Pos[0]                            = cache_get_field_content_float(0"pos_X");
        
P_Pos[1]                            = cache_get_field_content_float(0"pos_Y");
        
P_Pos[2]                            = cache_get_field_content_float(0"pos_Z");
        
SetPlayerScore(playeridPlayerInfo[playerid][Experience]);
        
SetPlayerPos(playeridP_Pos[0], P_Pos[1], P_Pos[2]);
    }
    return 
true;

Btw sorry if a made a typo somewhere, I'm on my tablet lol
Reply


Messages In This Thread
R34 warnings in mysql_log (no active cache) - by rOps - 19.01.2016, 09:12
Re: R34 warnings in mysql_log (no active cache) - by Marcuse - 19.01.2016, 10:32
Re: R34 warnings in mysql_log (no active cache) - by rOps - 19.01.2016, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)