[N]IZANNN Posted July 16, 2019 Report Share Posted July 16, 2019 (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, 2019 by [N]IZANNN Quote Link to comment Share on other sites More sharing options...
BaFFy Posted July 16, 2019 Report Share Posted July 16, 2019 Pai cauta in gamemode txtTimeDisp si vezi unde e folosita functia de afisare a textdrawului si pune-o aici(Textdrawshowforplayer(playerid, txtTimeDisp)). Quote Link to comment Share on other sites More sharing options...
[N]IZANNN Posted July 16, 2019 Author Report Share Posted July 16, 2019 (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, 2019 by [N]IZANNN Quote Link to comment Share on other sites More sharing options...
AdytZZa Posted July 16, 2019 Report Share Posted July 16, 2019 (edited) Cauta TextDrawSetString(txtTimeDisp, string) sau ceva asemanator si pune aici. Edited July 16, 2019 by AdytZZa Quote Link to comment Share on other sites More sharing options...
[N]IZANNN Posted July 16, 2019 Author Report Share Posted July 16, 2019 1 oră în urmă, AdytZZa a spus: Cauta TextDrawSetString(txtTimeDisp, string) sau ceva asemanator si pune aici. nu merge Quote Link to comment Share on other sites More sharing options...
AdytZZa Posted July 16, 2019 Report Share Posted July 16, 2019 1 oră în urmă, [N]IZANNN a spus: nu merge Nu trebuie sa cauti mot a mot, cauta doar TextDrawSetString(txtTimeDisp Quote Link to comment Share on other sites More sharing options...
BaFFy Posted July 17, 2019 Report Share Posted July 17, 2019 Cauta in gamemode txtTimeDisp si vezi unde ai functia TextdrawSetString cu txtTimeDisp. Sper ca ai inteles. Quote Link to comment Share on other sites More sharing options...
[N]IZANNN Posted July 17, 2019 Author Report Share Posted July 17, 2019 (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, 2019 by [N]IZANNN Quote Link to comment Share on other sites More sharing options...
BaFFy Posted July 18, 2019 Report Share Posted July 18, 2019 Acum arata-ne linia cu formatul timestr. Quote Link to comment Share on other sites More sharing options...
[N]IZANNN Posted July 19, 2019 Author Report Share Posted July 19, 2019 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 Link to comment Share on other sites More sharing options...
Blind[.] Posted July 21, 2019 Report Share Posted July 21, 2019 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 Link to comment Share on other sites More sharing options...
[N]IZANNN Posted July 22, 2019 Author Report Share Posted July 22, 2019 (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, 2019 by [N]IZANNN Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.