Jump to content

Recommended Posts

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

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

Posted (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 by [N]IZANNN
Posted (edited)

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

Edited by AdytZZa
Posted
1 oră în urmă, AdytZZa a spus:

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

nu merge

Posted
1 oră în urmă, [N]IZANNN a spus:

nu merge

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

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

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

Posted
	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.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.