Kako da dodam funkciju TD-a ?

Započeo Golf, April 15, 2020, 12:49:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning): nemam errore
Dio skripte:
BRZINOMER[ playerid ][ 0 ] = CreatePlayerTextDraw(playerid, 482.100036, 365.860229, "LD_SPAC:WHITE");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 0 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 0 ], 141.730148, 64.000000);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 0 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 0 ], 7393535);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 0 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 0 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 0 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 0 ], 4);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 0 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 0 ], 0);

	BRZINOMER[ playerid ][ 1 ] = CreatePlayerTextDraw(playerid, 482.700073, 366.360260, "LD_SPAC:WHITE");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 1 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 1 ], 139.940032, 62.910015);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 1 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 1 ], 255);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 1 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 1 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 1 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 1 ], 4);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 1 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 1 ], 0);

	BRZINOMER[ playerid ][ 2 ] = CreatePlayerTextDraw(playerid, 553.199768, 366.959991, "KONTROLNA_TABLA");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 2 ], 0.200000, 0.606933);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 2 ], 2);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 2 ], -1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 2 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 2 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 2 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 2 ], 2);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 2 ], 1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 2 ], 0);

	BRZINOMER[ playerid ][ 3 ] = CreatePlayerTextDraw(playerid, 544.898620, 385.173400, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 3 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 3 ], 77.000000, 43.000000);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 3 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 3 ], 7393535);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 3 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 3 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 3 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 3 ], 4);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 3 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 3 ], 0);

	BRZINOMER[ playerid ][ 4 ] = CreatePlayerTextDraw(playerid, 545.898376, 385.373413, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 4 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 4 ], 75.000000, 42.000000);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 4 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 4 ], 255);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 4 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 4 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 4 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 4 ], 4);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 4 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 4 ], 0);

	BRZINOMER[ playerid ][ 5 ] = CreatePlayerTextDraw(playerid, 546.698181, 386.073455, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 5 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 5 ], 74.000000, 40.399932);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 5 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 5 ], 7393535);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 5 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 5 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 5 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 5 ], 4);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 5 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 5 ], 0);

	BRZINOMER[ playerid ][ 6 ] = CreatePlayerTextDraw(playerid, 486.599975, 376.013275, "LD_POOL:BALL");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 6 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 6 ], 29.000000, 24.000000);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 6 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 6 ], 7393535);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 6 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 6 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 6 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 6 ], 4);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 6 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 6 ], 0);

	BRZINOMER[ playerid ][ 7 ] = CreatePlayerTextDraw(playerid, 488.100067, 377.013336, "LD_POOL:BALL");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 7 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 7 ], 26.000000, 22.000000);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 7 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 7 ], 255);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 7 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 7 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 7 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 7 ], 4);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 7 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 7 ], 0);

	BRZINOMER[ playerid ][ 8 ] = CreatePlayerTextDraw(playerid, 489.500152, 377.913391, "LD_POOL:BALL");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 8 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 8 ], 23.000000, 20.000000);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 8 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 8 ], 7393535);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 8 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 8 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 8 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 8 ], 4);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 8 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 8 ], 0);

	BRZINOMER[ playerid ][ 9 ] = CreatePlayerTextDraw(playerid, 500.399871, 382.640014, "455");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 9 ], 0.299999, 1.129600);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 9 ], 2);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 9 ], -1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 9 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 9 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 9 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 9 ], 3);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 9 ], 1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 9 ], 0);

	BRZINOMER[ playerid ][ 10 ] = CreatePlayerTextDraw(playerid, 485.199890, 402.053344, "GORIVO:_45L");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 10 ], 0.167200, 0.689066);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 10 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 10 ], -1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 10 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 10 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 10 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 10 ], 2);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 10 ], 1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 10 ], 0);

	BRZINOMER[ playerid ][ 11 ] = CreatePlayerTextDraw(playerid, 581.999938, 378.159851, "ELEGYYYY");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 11 ], 0.167200, 0.689066);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 11 ], 2);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 11 ], -1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 11 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 11 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 11 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 11 ], 2);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 11 ], 1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 11 ], 0);

	BRZINOMER[ playerid ][ 12 ] = CreatePlayerTextDraw(playerid, 485.199890, 408.026458, "MOTOR:_UGASEN");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 12 ], 0.167200, 0.689066);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 12 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 12 ], -1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 12 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 12 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 12 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 12 ], 2);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 12 ], 1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 12 ], 0);

	BRZINOMER[ playerid ][ 13 ] = CreatePlayerTextDraw(playerid, 485.199920, 413.999847, "SVETLA:_ON");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 13 ], 0.167200, 0.689066);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 13 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 13 ], -1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 13 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 13 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 13 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 13 ], 2);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 13 ], 1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 13 ], 0);

	BRZINOMER[ playerid ][ 14 ] = CreatePlayerTextDraw(playerid, 484.500000, 419.973236, "HP:_1000.00");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 14 ], 0.167200, 0.689066);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 14 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 14 ], -1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 14 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 14 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 14 ], 255);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 14 ], 2);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 14 ], 1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 14 ], 0);

	BRZINOMER[ playerid ][ 15 ] = CreatePlayerTextDraw(playerid, 555.399902, 364.066680, "");
	PlayerTextDrawLetterSize(playerid, BRZINOMER[ playerid ][ 15 ], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, BRZINOMER[ playerid ][ 15 ], 65.000000, 82.000000);
	PlayerTextDrawAlignment(playerid, BRZINOMER[ playerid ][ 15 ], 1);
	PlayerTextDrawColor(playerid, BRZINOMER[ playerid ][ 15 ], -1);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 15 ], 0);
	PlayerTextDrawSetOutline(playerid, BRZINOMER[ playerid ][ 15 ], 0);
	PlayerTextDrawBackgroundColor(playerid, BRZINOMER[ playerid ][ 15 ], 0);
	PlayerTextDrawFont(playerid, BRZINOMER[ playerid ][ 15 ], 5);
	PlayerTextDrawSetProportional(playerid, BRZINOMER[ playerid ][ 15 ], 0);
	PlayerTextDrawSetShadow(playerid, BRZINOMER[ playerid ][ 15 ], 0);
	PlayerTextDrawSetPreviewModel(playerid, BRZINOMER[ playerid ][ 15 ], 562);
	PlayerTextDrawSetPreviewRot(playerid, BRZINOMER[ playerid ][ 15 ], -10.000000, 0.000000, -45.000000, 1.000000);
	PlayerTextDrawSetPreviewVehCol(playerid, BRZINOMER[ playerid ][ 15 ], 0, 1);

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]nop[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): samo kako da dodam funkciju, da dodam da bi redilo InGame, da detektuje HP Vozila, Svetla itd...

Za health vozila : GetVehicleHealth, zatim formatiras i stavis u PlayerTextDrawSetString

Za svetla je malo komplikovanije, pogledaj na netu ili uzmi iz nekog moda.

Nadam se da ce ti ovo pomoci, zato sto sve nas iskreno mrzi da ti radimo sve :)


Citat: V01D poslato April 15, 2020, 12:54:00 POSLE PODNE
Za health vozila : GetVehicleHealth, zatim formatiras i stavis u PlayerTextDrawSetString

Za svetla je malo komplikovanije, pogledaj na netu ili uzmi iz nekog moda.

Nadam se da ce ti ovo pomoci, zato sto sve nas iskreno mrzi da ti radimo sve :)