Mysql Registrate
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
So where do you actually assign a value to PlayerInfo[playerid][posX/Y/Z] after the registration is complete? Nowhere, it seems.
Код:
public OnAccountLoad(playerid)
{

    PlayerInfo[playerid][Admin] = cache_get_field_content_int(0, "Admin"); 
    PlayerInfo[playerid][Vip] = cache_get_field_content_int(0, "Vip"); 
    PlayerInfo[playerid][Money] = cache_get_field_content_int(0, "Money");
    PlayerInfo[playerid][posX] = cache_get_field_content_float(0, "posX");
    PlayerInfo[playerid][posY] = cache_get_field_content_float(0, "posY");
    PlayerInfo[playerid][posZ] = cache_get_field_content_float(0, "posZ");

    GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);
    SendClientMessage(playerid, -1, "Sekmingai prisijungete"); 



return 1;
}
i did everything like on this tut https://sampforum.blast.hk/showthread.php?tid=485633

almost copy paste just take off wp_hash cuz with him i got some sql error
i have some npc on my server not sure maybe they couse some problems ? and before i do registration stuff my npcs works perfect after registration they get same stuff like my get in random position on spawn usualy underground
Reply


Messages In This Thread
Mysql Registrate - by cyberlord - 22.12.2014, 12:07
Re: Mysql Registrate - by Vince - 22.12.2014, 12:22
Re: Mysql Registrate - by cyberlord - 22.12.2014, 12:25
Re: Mysql Registrate - by Vince - 22.12.2014, 12:29
Re: Mysql Registrate - by cyberlord - 22.12.2014, 12:31
Re: Mysql Registrate - by cyberlord - 22.12.2014, 13:49

Forum Jump:


Users browsing this thread: 5 Guest(s)