22.12.2014, 12:25
Quote:
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; }
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