[POMOC]textdraw ne nestane..

Započeo Ole, Jul 03, 2016, 17:12:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 7 gostiju pregledaju ovu temu.

Ole

*

Skripta koju koristim:moja
Detaljan opis problema:ovako napravio sam klasa sistem i sad kad zavrsim login i izaberem koji ocu tim i odaberem klasu textdraw "Hrvatska" mi ostane na ekranu a u skripti nema nigdje da mogu sta da promjenim? Mozda imate neku ideju do cega je problem ?
Dio skripte:///
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://prntscr.com/bo9fcm

Dodaj TextDrawHideForPlayer(playerid, svoje); na OnPlayerSpawn

Ole

*

Citat: Mate poslato Jul 03, 2016, 17:14:53 POSLE PODNE
Dodaj TextDrawHideForPlayer(playerid, svoje); na OnPlayerSpawn
brate znam, ali ovo je cudno.Dodam jedu fs Time koja pokazuje vrijeme i tada je sve u redu ne pokazuje ovaj problem ali kad je izbrisem jer je nesto ubagovana onda mi se ovo pojavi? Na OnPlayerSpawn stavim tako ali opet je isto ne kontam. Vrlo Cudnovato!  :D

Citat: Ole poslato Jul 03, 2016, 17:18:39 POSLE PODNE
Citat: Mate poslato Jul 03, 2016, 17:14:53 POSLE PODNE
Dodaj TextDrawHideForPlayer(playerid, svoje); na OnPlayerSpawn
brate znam, ali ovo je cudno.Dodam jedu fs Time koja pokazuje vrijeme i tada je sve u redu ne pokazuje ovaj problem ali kad je izbrisem jer je nesto ubagovana onda mi se ovo pojavi? Na OnPlayerSpawn stavim tako ali opet je isto ne kontam. Vrlo Cudnovato!  :D


Aj ovako Otidju u svoj skriptu i nadji public OnPlayerRequestClass i tamo imas nesto od svakog tima tako ? E sada kada naprimjer izaberes tim Hrvatska sakrij sve druge timove! I tamo npr dodjes do tima Srbija i kada si na tom timu sakrij sve druge textdravove od timova a ostavis vidljit taj td za srbiju tako i za hrvatsku!

AHAhaha ako ne kuzis je** me xD

Ole

*

Citat: Mate poslato Jul 03, 2016, 17:23:45 POSLE PODNE
Citat: Ole poslato Jul 03, 2016, 17:18:39 POSLE PODNE
Citat: Mate poslato Jul 03, 2016, 17:14:53 POSLE PODNE
Dodaj TextDrawHideForPlayer(playerid, svoje); na OnPlayerSpawn
brate znam, ali ovo je cudno.Dodam jedu fs Time koja pokazuje vrijeme i tada je sve u redu ne pokazuje ovaj problem ali kad je izbrisem jer je nesto ubagovana onda mi se ovo pojavi? Na OnPlayerSpawn stavim tako ali opet je isto ne kontam. Vrlo Cudnovato!  :D


Aj ovako Otidju u svoj skriptu i nadji public OnPlayerRequestClass i tamo imas nesto od svakog tima tako ? E sada kada naprimjer izaberes tim Hrvatska sakrij sve druge timove! I tamo npr dodjes do tima Srbija i kada si na tom timu sakrij sve druge textdravove od timova a ostavis vidljit taj td za srbiju tako i za hrvatsku!

AHAhaha ako ne kuzis je** me xD
mislim da nema potrebe i nema logike da to radim kad je prije sve bilo u redu stvarno ne znam pokusat cu nesto da improvizujem pa cemo vidit  ;D ;D


Ole

*

Citat: Mate poslato Jul 03, 2016, 17:45:04 POSLE PODNE
Pokazi nam OnPlayerRequestClass sve!
public OnPlayerRequestClass(playerid, classid)
{
	Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x,y,z);
	switch(classid)
	{
		case 0:
		{
			// HRVATSKA //
			SetPlayerFacingAngle(playerid, 341.0268);
			SetPlayerPos(playerid, 986.0437,2099.5232,23.9544);
			SetPlayerCameraPos(playerid, 987.9015, 2107.3215, 23.8944);
			SetPlayerCameraLookAt(playerid, 987.6723, 2106.3511, 23.8996, CAMERA_MOVE);
			TextDrawShowForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, S);
			TextDrawHideForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, A2);
			TextDrawShowForPlayer(playerid, E);
			gTeam[playerid] = TEAM_HRVATSKA;
			SetPlayerTeam(playerid, 0);
			SetPlayerSkin(playerid, 73);
			SetPlayerColor(playerid, TEAM_HRVATSKA_COLOR);
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
		case 1:
		{
			// MAKEDONIJA //
			SetPlayerFacingAngle(playerid, 90.0);
			SetPlayerPos(playerid, -794.9099,1610.2480,29.7032);
			SetPlayerCameraPos(playerid, -798.2032, 1611.5031, 30.2649);
			SetPlayerCameraLookAt(playerid, -797.2197, 1611.3000, 30.1449, CAMERA_MOVE);
			TextDrawShowForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, S);
			TextDrawHideForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, A2);
			TextDrawHideForPlayer(playerid, E);
			SetPlayerTeam(playerid, 1);
			SetPlayerSkin(playerid, 254);
			gTeam[playerid] = TEAM_MAKEDONIJA;
			SetPlayerColor(playerid, TEAM_MAKEDONIJA_COLOR);
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
		case 2:
		{
			// SRBIJA //
			SetPlayerFacingAngle(playerid, 181.3365);
			SetPlayerPos(playerid, -144.2001,1224.5303,26.2031);
			SetPlayerCameraPos(playerid, -144.0881, 1219.8387, 25.9057);
			SetPlayerCameraLookAt(playerid, -144.1272, 1220.8354, 25.8959, CAMERA_MOVE);
			TextDrawShowForPlayer(playerid, S);
			TextDrawHideForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, A2);
			TextDrawHideForPlayer(playerid, E);
			SetPlayerSkin(playerid, 285);
			SetPlayerTeam(playerid, 2);
			gTeam[playerid] = TEAM_SRBIJA;
			SetPlayerColor(playerid, TEAM_SRBIJA_COLOR);
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
		case 3:
		{
			// BOSNA //
			SetPlayerFacingAngle(playerid, 221.1536);
   			SetPlayerPos(playerid, 223.5235,1925.1610,23.6406);
   			SetPlayerCameraPos(playerid, 225.1002, 1919.4045, 23.5022);
			SetPlayerCameraLookAt(playerid, 224.6982, 1920.3141, 23.5323, CAMERA_MOVE);
			TextDrawHideForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, S);
			TextDrawShowForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, A2);
			TextDrawHideForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, E);
			SetPlayerTeam(playerid, 5);
			SetPlayerSkin(playerid, 287);
			gTeam[playerid] = TEAM_BOSNA;
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
		case 4:
		{
			// SLOVENIJA //
			SetPlayerFacingAngle(playerid, 1.1915);
			SetPlayerPos(playerid, 404.6997,2476.0964,29.6423);
			SetPlayerCameraPos(playerid, 405.0119, 2480.5735, 29.7152);
			SetPlayerCameraLookAt(playerid, 405.0100, 2479.5798, 29.6652, CAMERA_MOVE);
			TextDrawShowForPlayer(playerid, A2);
			TextDrawHideForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, S);
			TextDrawHideForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, E);
			SetPlayerTeam(playerid, 4);
			SetPlayerSkin(playerid, 206);
			gTeam[playerid] = TEAM_SLOVENIJA;
			SetPlayerColor(playerid, TEAM_SLOVENIJA_COLOR);
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
	}
	return 1;
}

Citat: Ole poslato Jul 03, 2016, 17:45:48 POSLE PODNE
Citat: Mate poslato Jul 03, 2016, 17:45:04 POSLE PODNE
Pokazi nam OnPlayerRequestClass sve!
public OnPlayerRequestClass(playerid, classid)
{
	Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x,y,z);
	switch(classid)
	{
		case 0:
		{
			// HRVATSKA //
			SetPlayerFacingAngle(playerid, 341.0268);
			SetPlayerPos(playerid, 986.0437,2099.5232,23.9544);
			SetPlayerCameraPos(playerid, 987.9015, 2107.3215, 23.8944);
			SetPlayerCameraLookAt(playerid, 987.6723, 2106.3511, 23.8996, CAMERA_MOVE);
			TextDrawShowForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, S);
			TextDrawHideForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, A2);
			TextDrawShowForPlayer(playerid, E);
			gTeam[playerid] = TEAM_HRVATSKA;
			SetPlayerTeam(playerid, 0);
			SetPlayerSkin(playerid, 73);
			SetPlayerColor(playerid, TEAM_HRVATSKA_COLOR);
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
		case 1:
		{
			// MAKEDONIJA //
			SetPlayerFacingAngle(playerid, 90.0);
			SetPlayerPos(playerid, -794.9099,1610.2480,29.7032);
			SetPlayerCameraPos(playerid, -798.2032, 1611.5031, 30.2649);
			SetPlayerCameraLookAt(playerid, -797.2197, 1611.3000, 30.1449, CAMERA_MOVE);
			TextDrawShowForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, S);
			TextDrawHideForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, A2);
			TextDrawHideForPlayer(playerid, E);
			SetPlayerTeam(playerid, 1);
			SetPlayerSkin(playerid, 254);
			gTeam[playerid] = TEAM_MAKEDONIJA;
			SetPlayerColor(playerid, TEAM_MAKEDONIJA_COLOR);
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
		case 2:
		{
			// SRBIJA //
			SetPlayerFacingAngle(playerid, 181.3365);
			SetPlayerPos(playerid, -144.2001,1224.5303,26.2031);
			SetPlayerCameraPos(playerid, -144.0881, 1219.8387, 25.9057);
			SetPlayerCameraLookAt(playerid, -144.1272, 1220.8354, 25.8959, CAMERA_MOVE);
			TextDrawShowForPlayer(playerid, S);
			TextDrawHideForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, A2);
			TextDrawHideForPlayer(playerid, E);
			SetPlayerSkin(playerid, 285);
			SetPlayerTeam(playerid, 2);
			gTeam[playerid] = TEAM_SRBIJA;
			SetPlayerColor(playerid, TEAM_SRBIJA_COLOR);
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
		case 3:
		{
			// BOSNA //
			SetPlayerFacingAngle(playerid, 221.1536);
   			SetPlayerPos(playerid, 223.5235,1925.1610,23.6406);
   			SetPlayerCameraPos(playerid, 225.1002, 1919.4045, 23.5022);
			SetPlayerCameraLookAt(playerid, 224.6982, 1920.3141, 23.5323, CAMERA_MOVE);
			TextDrawHideForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, S);
			TextDrawShowForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, A2);
			TextDrawHideForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, E);
			SetPlayerTeam(playerid, 5);
			SetPlayerSkin(playerid, 287);
			gTeam[playerid] = TEAM_BOSNA;
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
		case 4:
		{
			// SLOVENIJA //
			SetPlayerFacingAngle(playerid, 1.1915);
			SetPlayerPos(playerid, 404.6997,2476.0964,29.6423);
			SetPlayerCameraPos(playerid, 405.0119, 2480.5735, 29.7152);
			SetPlayerCameraLookAt(playerid, 405.0100, 2479.5798, 29.6652, CAMERA_MOVE);
			TextDrawShowForPlayer(playerid, A2);
			TextDrawHideForPlayer(playerid, A);
			TextDrawHideForPlayer(playerid, S);
			TextDrawHideForPlayer(playerid, U);
			TextDrawHideForPlayer(playerid, EUR);
			TextDrawHideForPlayer(playerid, E);
			SetPlayerTeam(playerid, 4);
			SetPlayerSkin(playerid, 206);
			gTeam[playerid] = TEAM_SLOVENIJA;
			SetPlayerColor(playerid, TEAM_SLOVENIJA_COLOR);
			Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		}
	}
	return 1;
}


Ovo je sve ok! Pokazi nam pod OnPlayerSpawn sve TextDrawHideForPlayer koji imaju veze sa timovima!

Ole

*

TextDrawShowForPlayer(playerid, TeamText[playerid]);
ovako svi timovi su mi povezani sa TeamText a pod OnPlayerSpawn mi je Show a kada stavim da je
TextDrawHideForPlayer(playerid, TeamText[playerid]);
opet isti problem !?

Postavi ovo pod OnPlayerSpawn

TextDrawHideForPlayer(playerid, EUR);
	TextDrawHideForPlayer(playerid, E);
	TextDrawHideForPlayer(playerid, A);
	TextDrawHideForPlayer(playerid, S);
	TextDrawHideForPlayer(playerid, U);
	TextDrawHideForPlayer(playerid, A2);

Ole

*

Citat: Mate poslato Jul 03, 2016, 17:59:01 POSLE PODNE
Postavi ovo pod OnPlayerSpawn

TextDrawHideForPlayer(playerid, EUR);
	TextDrawHideForPlayer(playerid, E);
	TextDrawHideForPlayer(playerid, A);
	TextDrawHideForPlayer(playerid, S);
	TextDrawHideForPlayer(playerid, U);
	TextDrawHideForPlayer(playerid, A2);

imam to vec...

Cemu tolika muka oko sitnice ? Koliko sam razumeo imas samo taj jedan problem sa TDom koji ostane... Pronadjes ga u scripti i vidis kako je definisan zatim jednostavno pomocu funkcije TextDrawShowForPlayer prikazujes igracu TD a pomocu funkcije TextDrawHideForPlayer sklanjas TD. Sve sto tebi treba jeste da definises to sklanjanje tamo gde zelis da ga skloni...