Jump to content
Sign in to follow this  
[N]IZANNN

Nevoie ajutor ceas

Recommended Posts

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 by [N]IZANNN

Share this post


Link to post
Share on other sites

Pai cauta in gamemode txtTimeDisp si vezi unde e folosita functia de afisare a textdrawului si pune-o aici(Textdrawshowforplayer(playerid, txtTimeDisp)).

Share this post


Link to post
Share on other sites
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 by [N]IZANNN

Share this post


Link to post
Share on other sites

Cauta TextDrawSetString(txtTimeDisp, string) sau ceva asemanator si pune aici.

Edited by AdytZZa

Share this post


Link to post
Share on other sites
1 oră în urmă, AdytZZa a spus:

Cauta TextDrawSetString(txtTimeDisp, string) sau ceva asemanator si pune aici.

nu merge

Share this post


Link to post
Share on other sites
1 oră în urmă, [N]IZANNN a spus:

nu merge

Nu trebuie sa cauti mot a mot, cauta doar TextDrawSetString(txtTimeDisp

Share this post


Link to post
Share on other sites
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 by [N]IZANNN

Share this post


Link to post
Share on other sites

	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);

Share this post


Link to post
Share on other sites
	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.

Share this post


Link to post
Share on other sites
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 by [N]IZANNN

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.