SA-MP Forums Archive
Create3DTextLabel update - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Create3DTextLabel update (/showthread.php?tid=523957)



Create3DTextLabel update - Sturra - 04.07.2014

Hey,

I trying to make simple Create3DTextLabel update system. If you are drug dealer (IG) you can see that the storage is open, but if not it's close. My problem is that the when you get this job this text change it's still closed.

Код:
	else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i,207.8063,-61.6892,1.9766))
			{
			    if(PlayerInfo[i][pJob] == 4)
			    {
			    Update3DTextLabelText(laotekst, COLOR_RED, "{FF9900}Blueberry storage\n{339933}Open");
			    }
			    else
			    {
           laotekst = Create3DTextLabel("{CC0000}Blueberry storage\n{CC0000}Closed",COLOR_RED,207.8063,-61.6892,1.9766,25.0,0);
			    }
			}
I hope someone could help me out. Regards, Sturra.


Re: Create3DTextLabel update - rappy93 - 04.07.2014

I don't think you can make it so that one player sees the text "closed" and another sees "open" at the same time with the same text.


Re: Create3DTextLabel update - Sturra - 04.07.2014

Quote:
Originally Posted by rappy93
Посмотреть сообщение
I don't think you can make it so that one player sees the text "closed" and another sees "open" at the same time with the same text.
Oh well..


Re: Create3DTextLabel update - rappy93 - 04.07.2014

Under which callback did you put this?


Re: Create3DTextLabel update - Sturra - 04.07.2014

Quote:
Originally Posted by rappy93
Посмотреть сообщение
Under which callback did you put this?
OnGameModeInit


Re: Create3DTextLabel update - rappy93 - 04.07.2014

Callback... like OnGameModeInit or OnPlayerConnect, etc.


Re: Create3DTextLabel update - Sturra - 04.07.2014

Quote:
Originally Posted by rappy93
Посмотреть сообщение
Callback... like OnGameModeInit or OnPlayerConnect, etc.
OnGameModeInit


Re: Create3DTextLabel update - rappy93 - 04.07.2014

You should just create the 3d text there. You should put the update else where.


Re: Create3DTextLabel update - Sturra - 04.07.2014

Sorry my bad, it was other call. Now when i put it in OnGameModeInit i'm getting errors like this.

Код:
F:\Users\Kasutaja\Desktop\ServeriFailid\gamemodes\dlrp.pwn(12245) : error 017: undefined symbol "i"
F:\Users\Kasutaja\Desktop\ServeriFailid\gamemodes\dlrp.pwn(12247) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: Create3DTextLabel update - Sturra - 05.07.2014

Anyone can't really help out? :/