[N]IZANNN 1 Report post Posted July 16 (edited) Salutare am nevoie de ajutor ! deci am stock LoadTextdraws() { txtTimeDisp = TextDrawCreate(577.000122, 14.933329, "19:34"); TextDrawLetterSize(txtTimeDisp, 0.484999, 1.890370); TextDrawAlignment(txtTimeDisp, 2); TextDrawColor(txtTimeDisp, -1); TextDrawSetShadow(txtTimeDisp, 0); TextDrawSetOutline(txtTimeDisp, 1); TextDrawBackgroundColor(txtTimeDisp, 255); TextDrawFont(txtTimeDisp, 3); TextDrawSetProportional(txtTimeDisp, 1); ceas pe textdraw si cand trece 1 min se da iar cu o 1h in urma =(( ce e de facut? Daca e 19:00 ! trece 1 minut si se modifica singur in 18:01 ... Edited July 16 by [N]IZANNN Quote Share this post Link to post Share on other sites
BaFFy 1 Report post Posted July 16 Pai cauta in gamemode txtTimeDisp si vezi unde e folosita functia de afisare a textdrawului si pune-o aici(Textdrawshowforplayer(playerid, txtTimeDisp)). Quote Share this post Link to post Share on other sites
[N]IZANNN 1 Report post Posted July 16 (edited) Acum 1 oră, BaFFy a spus: Pai cauta in gamemode txtTimeDisp si vezi unde e folosita functia de afisare a textdrawului si pune-o aici(Textdrawshowforplayer(playerid, txtTimeDisp)). nu ma prind deci.. caut txtTimeDisp si unde pun "txtTimeDisp"? function OnPlayerSpawn(playerid) { SetPlayerWeather(playerid, ServerWeather); SetPlayerHealthEx(playerid, 100.0); SetPlayerArmourEx(playerid, 0); TextDrawShowForPlayer(playerid, txtDateDisp); TextDrawShowForPlayer(playerid, txtTimeDisp); SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]); DestroyDynamic3DTextLabel(DeadScris[playerid]); if(PlayerInfo[playerid][pWantedLevel] >= 1) eu vad ca e pusa.. Edited July 16 by [N]IZANNN Quote Share this post Link to post Share on other sites
AdytZZa 0 Report post Posted July 16 (edited) Cauta TextDrawSetString(txtTimeDisp, string) sau ceva asemanator si pune aici. Edited July 16 by AdytZZa Quote Share this post Link to post Share on other sites
[N]IZANNN 1 Report post Posted July 16 1 oră în urmă, AdytZZa a spus: Cauta TextDrawSetString(txtTimeDisp, string) sau ceva asemanator si pune aici. nu merge Quote Share this post Link to post Share on other sites
AdytZZa 0 Report post Posted July 16 1 oră în urmă, [N]IZANNN a spus: nu merge Nu trebuie sa cauti mot a mot, cauta doar TextDrawSetString(txtTimeDisp Quote Share this post Link to post Share on other sites
BaFFy 1 Report post Posted July 17 Cauta in gamemode txtTimeDisp si vezi unde ai functia TextdrawSetString cu txtTimeDisp. Sper ca ai inteles. Quote Share this post Link to post Share on other sites
[N]IZANNN 1 Report post Posted July 17 (edited) Acum 2 ore, BaFFy a spus: Cauta in gamemode txtTimeDisp si vezi unde ai functia TextdrawSetString cu txtTimeDisp. Sper ca ai inteles. TextDrawSetString(txtTimeDisp,timestr); TextDrawSetString(txtDateDisp,datestr); am cautat txtTimeDisp mai trebuie pus ceva? Edited July 17 by [N]IZANNN Quote Share this post Link to post Share on other sites
BaFFy 1 Report post Posted July 18 Acum arata-ne linia cu formatul timestr. Quote Share this post Link to post Share on other sites
[N]IZANNN 1 Report post Posted July 19 function SyncUp() { new string[128], tmphour, tmpminute, tmpsecond, hour, minn, sec, Year, Month, Day; gettime(hour,minn,sec); gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; getdate(Year, Month, Day); new datestr[128], timestr[32]; format(datestr,128,"%02d.%02d.%d", Day, Month, Year); format(timestr,32,"~w~%02d:%02d",tmphour,tmpminute); TextDrawSetString(txtTimeDisp,timestr); TextDrawSetString(txtDateDisp,datestr); Quote Share this post Link to post Share on other sites
Blind[.] 9 Report post Posted July 21 if (realtime) { new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; new worldt = tmphour+1; SetWorldTime(worldt); } Fa-i un upgrade la asta ca e ceva mai simplificat. Quote Share this post Link to post Share on other sites
[N]IZANNN 1 Report post Posted July 22 (edited) Acum 19 ore, Blind[.] a spus: if (realtime) { new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; new worldt = tmphour+1; SetWorldTime(worldt); } Fa-i un upgrade la asta ca e ceva mai simplificat. Înlocuiesc cu ce e acolo sau adaug? Edited July 22 by [N]IZANNN Quote Share this post Link to post Share on other sites