Create3DTextLabel Help
#1

Alright, so, I actaully managed to get the Create3DTextLabel to work, but I cannot seem to get to figure out how to have it at the point where when a player has gotten within a certain range, it would, of course, appear.

Код:
Public OnGameModeInit()
{
         if(IsPlayerInRangeOfPoint(playerid, 15.0, -329.8382,1536.7200,76.6117))
	           {
		             Create3DTextLabel("Soviet Union HQ\nType /enter to enter!",0x1D99FEFF,-            329.8382,1536.7200,76.6117,189.5094,0);
	           }
	           return 1;
}
But I get one error, most likely due to the location of it, so I believe I have it in the wrong callback.

Код:
C:\Documents and Settings\nmader\Desktop\Folders\WWIII RP\gamemodes\WWIII-RP2.pwn(142) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Just flat out confusing, especially when I am tired. (Getting addicted to scripting! ) Any help would be GREATLY appreciated. (+Rep)

Cheers,
nmader
Reply
#2

https://sampwiki.blast.hk/wiki/Create3DTextLabel

Look at the parameters. The DrawDistance parameter determines the range at which it will be created.
Reply
#3

Thanks MP2, visited the site earlier, must not have seen it!
(Don't worry, +rep )
Reply
#4

Try using it in
pawn Код:
public OnPlayerPickUpPickUp
Reply
#5

Don't use any playerid parameter OnGameModeInit. Just to add.
Reply
#6

Why do people insist in reply to topics that are SOLVED with irrelevant solutions? It baffles me it really does.
Reply
#7

*Whispering to MP2* pfft... They are obsessed with the post count...
Reply
#8

Quote:
Originally Posted by MP2
Посмотреть сообщение
Why do people insist in reply to topics that are SOLVED with irrelevant solutions? It baffles me it really does.
That was a note, so he won't ask again. And that's just a reason.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)