Jump to content

Nevoie ajutor ceas


[N]IZANNN

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
Link to comment
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
Link to comment
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
Link to comment
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);

Link to comment
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.

Link to comment
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
Link to comment
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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.