Mysql Won't Create Account (R41-2)
#4

This looks like an older version of MySQL to me.

Updated to R40+ Syntax:
Код:
forward OnAccountLoad(playerid);
public OnAccountLoad(playerid)
{
    cache_get_value_name_int(0, "Admin", PlayerInfo[playerid][pAdmin]);
    cache_get_value_name_int(0, "VIP", PlayerInfo[playerid][pVIP]);
    cache_get_value_name_int(0, "Score", PlayerInfo[playerid][Score]);
    cache_get_value_name_int(0, "Money", PlayerInfo[playerid][Money]);
    printf("%d | %d | %d | %d", PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pVIP], PlayerInfo[playerid][Score], PlayerInfo[playerid][Money]);
    GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);
    SetPlayerScore(playerid, PlayerInfo[playerid][Score]);

    SendClientMessage(playerid, -1, "You have successfully logged in.");
    return true;
}
Reply


Messages In This Thread
Mysql Won't Create Account (R41-2) - by DerickClark - 22.01.2017, 01:36
Re: Mysql Won't Create Account (R41-2) - by X337 - 22.01.2017, 02:22
Re: Mysql Won't Create Account (R41-2) - by DerickClark - 22.01.2017, 02:35
Re: Mysql Won't Create Account (R41-2) - by Logic_ - 22.01.2017, 04:18
Re: Mysql Won't Create Account (R41-2) - by DerickClark - 22.01.2017, 04:23
Re: Mysql Won't Create Account (R41-2) - by Logic_ - 22.01.2017, 04:25
Re: Mysql Won't Create Account (R41-2) - by X337 - 22.01.2017, 04:30
Re: Mysql Won't Create Account (R41-2) - by DerickClark - 22.01.2017, 04:31
Re: Mysql Won't Create Account (R41-2) - by Logic_ - 22.01.2017, 04:35
Re: Mysql Won't Create Account (R41-2) - by X337 - 22.01.2017, 04:39

Forum Jump:


Users browsing this thread: 1 Guest(s)