30.08.2011, 14:32
Public Update Time:
Tem Alguma Coisa Errada?
Quote:
forward UpdateTime(playerid); public UpdateTime(playerid) { format(score, sizeof(score), "Score: %i",GetPlayerScore(playerid)); TextDrawSetString(tdscore,score); gettime(hour, minute); format(timestr,32,"%02d:%02d",hour,minute); TextDrawSetString(txtTimeDisp,timestr); SetWorldTime(hour); new x=0; while(x!=MAX_PLAYERS) { if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) { SetPlayerTime(x,hour,minute); } x++; } } |