SA-MP Forums Archive
Create3DTextLabel Help - 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 Help (/showthread.php?tid=298060)



Create3DTextLabel Help - nmader - 19.11.2011

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


Re: Create3DTextLabel Help - MP2 - 19.11.2011

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

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


Re: Create3DTextLabel Help - nmader - 19.11.2011

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


Re: Create3DTextLabel Help - KosmasRego - 19.11.2011

Try using it in
pawn Код:
public OnPlayerPickUpPickUp



Re: Create3DTextLabel Help - GangsTa_ - 19.11.2011

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


Re: Create3DTextLabel Help - MP2 - 19.11.2011

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


Re: Create3DTextLabel Help - nmader - 19.11.2011

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


Re: Create3DTextLabel Help - GangsTa_ - 19.11.2011

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.