Playertopoint errors
#1

i commented out a few lines which i didn't need anymore and i got this
:
Код:
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(1726) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(1731) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(1942) : error 004: function "ProxDetector" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2002) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2012) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2023) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2221) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2246) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2267) : error 004: function "SetPlayerCriminal" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2284) : error 004: function "SetPlayerCriminal" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2366) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2370) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2382) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2386) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2390) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2394) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2398) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2402) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2406) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2417) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2421) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2425) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2429) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2433) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2437) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Farida.Farida-PC\Documents\Server\gamemodes\ERP.PWN(2449) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664			Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

Uncomment those functions
Reply
#3

Quote:
Originally Posted by dice7
Uncomment those functions
but the gang is removed and i don't want those player to points there D:
Reply
#4

What ?

Uncomment the function PlayerToPoint, SetPlayerCriminal, SetPlayerToTeamColor and ProxDetector
Reply
#5

Quote:
Originally Posted by dice7
What ?

Uncomment the function PlayerToPoint, SetPlayerCriminal, SetPlayerToTeamColor and ProxDetector
i never commented those functions, thats why im asking for help.
Reply
#6

Then you deleted them or something. Add them in
Reply
#7

Quote:
Originally Posted by dice7
Then you deleted them or something. Add them in
look, i didn't delete any function, there where a few playertopoints for a gang located in alhambra, i removed those as the gang is now finished. i commented those lines and am getting these errors, when i uncomment those lines i still get those errors now
Reply
#8

Omg, not function calls, functions!
This

pawn Код:
PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
  new Float:oldpos[3], Float:temppos[3];
  GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
  temppos[0] = (oldpos[0] -X);
  temppos[1] = (oldpos[1] -Y);
  temppos[2] = (oldpos[2] -Z);
  if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
  {
    return true;
  }
  return false;
}
Reply
#9

i think its better for you update to 0.3a and use the IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#10

Quote:
Originally Posted by dice7
Omg, not function calls, functions!
This

pawn Код:
PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
  new Float:oldpos[3], Float:temppos[3];
  GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
  temppos[0] = (oldpos[0] -X);
  temppos[1] = (oldpos[1] -Y);
  temppos[2] = (oldpos[2] -Z);
  if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
  {
    return true;
  }
  return false;
}
listen, i haven't commented that, i commented this:
Код:
else if(PlayerToPoint(2, i,503.2812,-11.7610,1000.6797))
			{//Alahambra HQ enterance
				if (PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12)
        	{
					GameTextForPlayer(i, "~w~Type ~g~/enterhq ~w~ to enter your gang HQ", 5000, 3);
				}
				else
				{
				  GameTextForPlayer(i, "~r~Blood Access Only", 5000, 3);
				}
			}
Quote:
Originally Posted by Virtual1ty
i think its better for you update to 0.3a and use the IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
I'm using 0.3 compiler, and im not really bothered to go through my 30k script changing everything.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)