25.05.2012, 22:36
Your code is confusing me. Try this.
I hope you did not forget the SetTimerEx or SetTimer.
Код:
forward PlayingTime(playerid); public PlayingTime(playerid) { PlayerInfo[playerid][PlayingMinutes]++; if(PlayerInfo[playerid][PlayingMinutes] >= 60) { PlayerInfo[playerid][PlayingHours]++; PlayerInfo[playerid][RespectPoints]++; PlayerInfo[playerid][PlayingMinutes] = 0; format(file, sizeof(file), "RRP/users/%s.ini", Name); if(fexist(file)) { dini_IntSet(file, "PlayingHours", PlayerInfo[playerid][PlayingHours]); dini_IntSet(file, "RespectPoints", PlayerInfo[playerid][RespectPoints]); dini_IntSet(file, "PlayingMinutes", PlayerInfo[playerid][PlayingMinutes]); } return 1; } new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); format(file, sizeof(file), "RRP/users/%s.ini", Name); if(fexist(file)) { dini_IntSet(file, "PlayingMinutes", PlayerInfo[playerid][PlayingMinutes]); } return 1; }