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??