Mysql loading :S
#1

.......
Reply
#2

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]);
    }
}
Reply
#3

.............
Reply
#4

Can you show the mysql_function_query code that calls onTHREAD_CompleteLoadPlayer?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)