Problems with loading achievements
#1

So, I've been working on an achievements system; The problem is the achievements are not being saved into the variables.. BUT THEY DO RETRIEVE THEM. I can see the variables on the mysql log. I even tried printing the the variables on the console, but all of them shown 0.

pawn Код:
stock LoadPlayerAchievements(playerid)
{
    new TQuery[600], shotitname[24], shotid;
    format(TQuery, 600, "SELECT * FROM `"Achievements"` WHERE `Username` = '%s'", GetPName(playerid));
    mysql_query(TQuery), mysql_store_result();
    mysql_fetch_row_format(TQuery);
    for(new i = 0; i <= 15; i++)
    {
        sscanf(TQuery, "e<p<|>is[24]iiiiiiiiiiiiiiii>", shotid, shotitname, PInfo[playerid][Ach][i], PInfo[playerid][AchsCompleted]);
    }
    mysql_free_result(), printf("%s's completed var is %i", GetPName(playerid), PInfo[playerid][AchsCompleted]);
    return 1;
}
Reply


Messages In This Thread
Problems with loading achievements - by biker122 - 15.09.2014, 10:14
Re: Problems with loading achievements - by Eth - 15.09.2014, 10:15
Re: Problems with loading achievements - by biker122 - 15.09.2014, 13:56
Re: Problems with loading achievements - by Toxik - 15.09.2014, 14:09
Re: Problems with loading achievements - by biker122 - 15.09.2014, 15:39
Re: Problems with loading achievements - by dusk - 15.09.2014, 16:07
Re: Problems with loading achievements - by biker122 - 15.09.2014, 16:58
Re: Problems with loading achievements - by dusk - 15.09.2014, 17:07
Re: Problems with loading achievements - by biker122 - 15.09.2014, 17:11
Re: Problems with loading achievements - by dusk - 15.09.2014, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)