18.03.2017, 21:50
Quote:
AssignPlayerData(playerid) { Player[playerid][ID] = cache_get_value_int(0, "id"); Player[playerid][Kills] = cache_get_value_int(0, "Kills"); Player[playerid][Deaths] = cache_get_value_int(0, "Deaths"); Player[playerid][Score] = cache_get_value_int(0, "Score"); Player[playerid][Money] = cache_get_value_int(0, "Money"); Player[playerid][Level] = cache_get_value_int(0, "Level"); Player[playerid][Cookies] = cache_get_value_int(0, "Cookies"); Player[playerid][Warns] = cache_get_value_int(0, "Warns"); SetPlayerScore(playerid, Player[playerid][Score]); SetPlayerMoney(playerid, Player[playerid][Money]); return 1; } |