MySQL cache
#4

Is this for assign player's data on spawn??
PHP код:
AssignPlayerData(playerid)
{
    
cache_get_value_int(0"id"PlayerInfo[playerid][ID]);
    
cache_get_value_int(0"kills"PlayerInfo[playerid][Kills]);
    
cache_get_value_int(0"deaths"PlayerInfo[playerid][Deaths]);
    
cache_get_value_int(0"interior"PlayerInfo[playerid][Interior]);
    
cache_get_value_int(0"money"PlayerInfo[playerid][Money]);
    
cache_get_value_int(0"score"PlayerInfo[playerid][Score]);
    
cache_get_value_int(0"admin"PlayerInfo[playerid][Admin]);
    
cache_get_value_int(0"vip"PlayerInfo[playerid][VIP]);
    return 
1;

It is called when player types his password. If it is for assigning it is not working. Values are written in database as they should be but ther are not assigned to player.. Any ideas??
Reply


Messages In This Thread
MySQL cache - by Micko123 - 08.11.2016, 07:23
Re: MySQL cache - by MerryDeer - 08.11.2016, 07:30
Re: MySQL cache - by Micko123 - 08.11.2016, 07:32
Re: MySQL cache - by Micko123 - 08.11.2016, 07:39
Re: MySQL cache - by X337 - 08.11.2016, 07:57
Re: MySQL cache - by Micko123 - 08.11.2016, 07:59
Re: MySQL cache - by F1N4L - 08.11.2016, 09:20
Re: MySQL cache - by Konstantinos - 08.11.2016, 09:24
Re: MySQL cache - by X337 - 08.11.2016, 09:24
Re: MySQL cache - by Micko123 - 08.11.2016, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)