SA-MP Forums Archive
Static Text when going in an icon - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Static Text when going in an icon (/showthread.php?tid=266567)



Static Text when going in an icon - Karl1195 - 05.07.2011

I am trying to do simple stuff but it's aint working for me i used to do this easily but now i am getting problems i am not a very good scripter so i need help cause this script worked before and now in this gamemode it isn't:

Код:
Errors
Код:
C:\Documents and Settings\Karl\Desktop\LSCRP.pwn(16930) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Karl\Desktop\LSCRP.pwn(16932) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Script:

Код:
Text
Код:
else if (PlayerToPoint(2.0, i, -206.5047,1086.9619,19.7422))
			{
			    GameTextForPlayer(i, "~g~Testing,~n~ Press alt to Enter", 5000, 3);
			}
Код:
Icon ((This does show up))
Код:
CreateDynamicPickup(1314, 1, 1689.6926,-2325.2639,-2.6797,0);
============================

Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); //playertopoint 
forward PlayerToPointStripped(Float:radi, playerid, Float:x, Float:y, Float:z, Float:curx, Float:cury, Float:curz);



Re: Static Text when going in an icon - Vince - 05.07.2011

Why are people still using outdated and deprecated functions when there are far better (native) alternatives available. Use IsPlayerInRangeOfPoint.


Re: Static Text when going in an icon - Lorenc_ - 05.07.2011

Make a forloop for change it to playerid

PlayerToPoint must have a function that is a public I guess but you're better off replacing it with IsPlayerInRangeOfPoint since it's a native of SA-MP (coding)