Static Text when going in an icon
#1

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);
Reply
#2

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

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)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)