SA-MP Forums Archive
Mysql loading :S - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mysql loading :S (/showthread.php?tid=438444)



........ - MagedXp - 20.05.2013

.......


Re: Mysql loading :S - Emmet_ - 20.05.2013

Try this maybe?

pawn Код:
forward onTHREAD_CompleteLoadPlayer(playerid);
public onTHREAD_CompleteLoadPlayer(playerid)
{
    new rows, fields;
    cache_get_data(rows, fields);
    for(new i = 0; i < fields; i++)
    {
        cache_get_field_content(i, "Score",PlayerInfo[playerid][pScore]);
        SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
        cache_get_field_content(i, "Admin", PlayerInfo[playerid][pAdmin]);
        cache_get_field_content(i, "Job", PlayerInfo[playerid][pJob]);
        cache_get_field_content(i, "Kills", PlayerInfo[playerid][pKills]);
        cache_get_field_content(i, "Deaths", PlayerInfo[playerid][pDeaths]);
        cache_get_field_content(i, "Jailed", PlayerInfo[playerid][pJailed]);
        cache_get_field_content(i, "JailTime", PlayerInfo[playerid][pJailTime]);
    }
}



Re: Mysql loading :S - MagedXp - 20.05.2013

.............


Re: Mysql loading :S - Emmet_ - 20.05.2013

Can you show the mysql_function_query code that calls onTHREAD_CompleteLoadPlayer?