SA-MP Forums Archive
How to add mutliple "PlayerToPoint" - 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: How to add mutliple "PlayerToPoint" (/showthread.php?tid=89099)



How to add mutliple "PlayerToPoint" - Antonio [G-RP] - 30.07.2009

Okay, I seem to have forgotten how to add multiple PlayerToPoint's so, heres my code...

Код:
if (PlayerToPoint(5, playerid, 2377.7808,-1908.1727,13.3828)) || (PlayerToPoint(5, playerid, 800.4943,-1629.1968,13.3828)) || (PlayerToPoint(5, playerid, 2410.0376,-1488.1743,23.8281))
and heres the errors that come with it...

Код:
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(7883) : error 029: invalid expression, assumed zero
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(7883 -- 7884) : error 028: invalid subscript (not an array or too many subscripts): "PlayerToPoint"
If someone could please refrest my memory it would be great Thanks!


Re: How to add mutliple "PlayerToPoint" - Jefff - 30.07.2009

Код:
if(PlayerToPoint(5, playerid, 2377.7808,-1908.1727,13.3828) || PlayerToPoint(5, playerid, 800.4943,-1629.1968,13.3828) || PlayerToPoint(5, playerid, 2410.0376,-1488.1743,23.8281))



Re: How to add mutliple "PlayerToPoint" - Antonio [G-RP] - 30.07.2009

Then I get the dam crazy error...

Код:
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1843) : error 004: function "ProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1850) : error 004: function "ProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1858) : error 004: function "ProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1866) : error 004: function "ProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1877) : error 004: function "ProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1921) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1925) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1929) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1933) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1937) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1941) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1945) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1949) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1953) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1957) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1961) : error 004: function "CrimProxDetector" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1977) : error 004: function "BestPlayer" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1983) : error 004: function "BestPlayer" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1988) : error 004: function "BestPlayer" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1993) : error 004: function "SpeedDelay" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(1999) : error 004: function "SpeedDelay" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(2005) : error 004: function "SpeedDelay" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(3126) : error 004: function "CrimInRange" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(3136) : error 004: function "AntiHack" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(3223) : error 004: function "AntiHack" is not implemented
C:\Users\Lachlan\Desktop\Hosting Server\pawno\iGRP.pwn(3238) : error 004: function "AntiHack" is not implemented



Re: How to add mutliple "PlayerToPoint" - Antonio [G-RP] - 30.07.2009

Could I please get some help


Re: How to add mutliple "PlayerToPoint" - Stas92 - 30.07.2009

You forgot somewhere a -> }


Re: How to add mutliple "PlayerToPoint" - Antonio [G-RP] - 30.07.2009

Could you please tell me where?


Re: How to add mutliple "PlayerToPoint" - MrPanz - 30.07.2009

Quote:
Originally Posted by Jefff
Код:
if(PlayerToPoint(5, playerid, 2377.7808,-1908.1727,13.3828) || PlayerToPoint(5, playerid, 800.4943,-1629.1968,13.3828) || PlayerToPoint(5, playerid, 2410.0376,-1488.1743,23.8281))
{
Do you have that bracket I added?

And if you we're to get errors still, Add an extra bracket ( } ) at the bottom of ur command
Ex:
Quote:

if(strcmp(cmd, "/wuteva", true) == 0)
{
If(playertopoint( etc etc...
{
SendClientMessage(playerid,COLOR_YELLOW, "blah");
return 1;
}
}




Re: How to add mutliple "PlayerToPoint" - Antonio [G-RP] - 30.07.2009

Oh my god! Thanks man, the extra bracket thingy on the bottom worked. Thanks to Jefff and and MrPanz, you will both have credit in my script


Re: How to add mutliple "PlayerToPoint" - MrPanz - 31.07.2009

Haha woot Can I have a IP to check it out?





Re: How to add mutliple "PlayerToPoint" - Antonio [G-RP] - 31.07.2009

Sure, 78.159.102.45:6000 At this time its practicly empty though ;( Im a begginger, but for about 4 hours we have like 10 online.