SA-MP Forums Archive
Automatic Teleport 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: Automatic Teleport problem (/showthread.php?tid=71026)



Automatic Teleport problem - sandsnake - 29.03.2009

Well i removed all ''yellow blips'' from the game like the entrance of lspd and i added teleports... but there its a problem i need to do /enter all times i want to enter in a place i tryed to make it automatic and here its a problem:
Exemple:
Foward in top of script:
Quote:

forward CheckForWalkingTeleport(playerid);

Pawno Code:
Quote:

public CheckForWalkingTeleport(playerid);

if (PlayerToPoint(3.0, playerid,1480.63,-1767.43,18.79))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,387.7978,173.8582,1008.382 ;
GameTextForPlayer(playerid, "~w~Welcome to the City Hall", 5000, 1);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 241;
}
else if (PlayerToPoint(3.0, playerid,1073.0619,-344.5148,73.9922))
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] ==
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,1205.0947,-10.1685,1000.9219);//Hitman Hq
PlayerInfo[playerid][pInt] = 2;
PlayerInfo[playerid][pLocal] = 242;
}
}

Errors:
Quote:

D:\SAMPSE~1\GAMEMO~1\BackUp\morojr.pwn(16333) : error 029: invalid expression, assumed zero
D:\SAMPSE~1\GAMEMO~1\BackUp\morojr.pwn(16333) : error 004: function "CheckForWalkingTeleport" is not implemented
D:\SAMPSE~1\GAMEMO~1\BackUp\morojr.pwn(3753 : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.




Re: Automatic Teleport problem - SpiderPork - 29.03.2009

pawn Code:
public CheckForWalkingTeleport(playerid)
{
   if (PlayerToPoint(3.0, playerid,1480.63,-1767.43,18.79))
   {
      SetPlayerInterior(playerid,3);
      SetPlayerPos(playerid, 387.7978, 173.8582, 1008.3828);
      GameTextForPlayer(playerid, "~w~Welcome to the City Hall", 5000, 1);
      PlayerInfo[playerid][pInt] = 3;
      PlayerInfo[playerid][pLocal] = 241;
   }

   else if (PlayerToPoint(3.0, playerid,1073.0619,-344.5148,73.9922))
   {
       if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
       {
         SetPlayerInterior(playerid,2);
         SetPlayerPos(playerid, 1205.0947, -10.1685, 1000.9219); // Hitman HQ
         PlayerInfo[playerid][pInt] = 2;
         PlayerInfo[playerid][pLocal] = 242;
       }
   }
   return 1;
}



Re: Automatic Teleport problem - sandsnake - 29.03.2009

Code:
D:\SAMPSE~1\GAMEMO~1\BackUp\morojr.pwn(16332) : error 029: invalid expression, assumed zero
D:\SAMPSE~1\GAMEMO~1\BackUp\morojr.pwn(16332) : error 004: function "CheckForWalkingTeleport" is not implemented
D:\SAMPSE~1\GAMEMO~1\BackUp\morojr.pwn(16355) : warning 225: unreachable code
D:\SAMPSE~1\GAMEMO~1\BackUp\morojr.pwn(37540) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Damn i cant fix that


Re: Automatic Teleport problem - SpiderPork - 29.03.2009

Tell us the lines which cause errors.


Re: Automatic Teleport problem - sandsnake - 29.03.2009

that line
public CheckForWalkingTeleport(playerid)
and

}
return 1;
}

if (PlayerToPoint(3.0, playerid,-1594.2106,716.1109,-4.9063))