SA-MP Forums Archive
What's the problem? - 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: What's the problem? (/showthread.php?tid=152810)



What's the problem? - Ihsan_Cingisiz - 05.06.2010

Hello, i'm trying to make a welcome message for a special
place. How can i display a 'i' icon on that place? But the main
question is, why do i get this error and what does it mean?

Script :
Quote:

forward PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z);

Quote:

if(PlayerToPoint(playerid,1642.2993,-2332.3384,13.5469))
{
GameTextForPlayer(playerid, "~r~Welcome", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.2993,-2332.3384,13.5469);
}




Re: What's the problem? - (SF)Noobanatior - 05.06.2010

what error?


Re: What's the problem? - Ihsan_Cingisiz - 05.06.2010

Quote:
Originally Posted by (SF)Noobanatior
what error?
Sorry forgot to add :
Quote:

error 004: function "PlayerToPoint" is not implemented




Re: What's the problem? - (SF)Noobanatior - 05.06.2010

well you dont have a PointToPoint function are you trying to get a players distance from where he is to a marker?


Re: What's the problem? - Ihsan_Cingisiz - 05.06.2010

Quote:
Originally Posted by (SF)Noobanatior
well you dont have a PointToPoint function are you trying to get a players distance from where he is to a marker?
No just por that position, i didnt make this sciprt i copied
from GF, when you enter ammu nation


Re: What's the problem? - (SF)Noobanatior - 05.06.2010

look through GF and find the point to point function

Public PointToPotin(playerid......

or

stock PointToPoint(playerid,....

AND COPY THE WHOLE FUNCTION INTO THE(caps) end of your mode


Re: What's the problem? - wofka13 - 05.06.2010

Why PlayerToPoint, the old, using IsPlayerInRangeOfPoint...
Код:
if(IsPlayerInRangeOfPoint(playerid,5.0,1642.2993,-2332.3384,13.5469))
{
GameTextForPlayer(playerid, "~r~Welcome", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.2993,-2332.3384,13.5469);
}



Re: What's the problem? - Ihsan_Cingisiz - 06.06.2010

Quote:
Originally Posted by wofka13
Why PlayerToPoint, the old, using IsPlayerInRangeOfPoint...
Код:
if(IsPlayerInRangeOfPoint(playerid,5.0,1642.2993,-2332.3384,13.5469))
{
GameTextForPlayer(playerid, "~r~Welcome", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.2993,-2332.3384,13.5469);
}
Thanks it works, how can i display a 'i' icon there?


Re: What's the problem? - Andy_McKinley - 06.06.2010

Quote:
Originally Posted by Ihsan_Cingisiz
Quote:
Originally Posted by wofka13
Why PlayerToPoint, the old, using IsPlayerInRangeOfPoint...
Код:
if(IsPlayerInRangeOfPoint(playerid,5.0,1642.2993,-2332.3384,13.5469))
{
GameTextForPlayer(playerid, "~r~Welcome", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.2993,-2332.3384,13.5469);
}
Thanks it works, how can i display a 'i' icon there?
Here is the full tutorial to create a pickup!
https://sampwiki.blast.hk/wiki/PickupGuide