Create3DTextLabel update
#1

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.
Reply
#2

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.
Reply
#3

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..
Reply
#4

Under which callback did you put this?
Reply
#5

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

Callback... like OnGameModeInit or OnPlayerConnect, etc.
Reply
#7

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

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

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.
Reply
#10

Anyone can't really help out? :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)