How to add mutliple "PlayerToPoint"
#1

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!
Reply
#2

Код:
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))
Reply
#3

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
Reply
#4

Could I please get some help
Reply
#5

You forgot somewhere a -> }
Reply
#6

Could you please tell me where?
Reply
#7

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;
}
}

Reply
#8

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
Reply
#9

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


Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)