SA-MP Forums Archive
Help! Teleport - 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: Help! Teleport (/showthread.php?tid=119378)



Help! Teleport - sXecookie - 08.01.2010

Here's the errors.

Quote:

C:\Users\Hampus\Desktop\Freeroam\gamemodes\freeroa m.pwn(1027) : warning 215: expression has no effect
C:\Users\Hampus\Desktop\Freeroam\gamemodes\freeroa m.pwn(1027) : error 001: expected token: ";", but found ")"
C:\Users\Hampus\Desktop\Freeroam\gamemodes\freeroa m.pwn(1027) : error 029: invalid expression, assumed zero
C:\Users\Hampus\Desktop\Freeroam\gamemodes\freeroa m.pwn(1027) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Here's the code.
Quote:

if (!strcmp("/ls-stunt", cmdtext, true))
{
SetPlayerPos(playerid, 600359, -2309.696289,19.270639), cmdtext);
return 1;
}




Re: Help! Teleport - KnooL - 08.01.2010

Код:
 	if (!strcmp("/ls-stunt", cmdtext, true))
	{
   	SetPlayerPos(playerid, 600359, -2309.696289,19.270639);
		return 1;
	}[/quote]
]


Re: Help! Teleport - bajskorv123 - 08.01.2010

Код:
if (strcmp("/ls-stunt",cmdtext,true)==0)
{
   SetPlayerPos(playerid, Xcoord, Ycoord, Zcoord);
   return 1;
}
You made a little wrong in the scripting, fixed that right away. But also it looks like you screwed up those coordinates, try getting new ones and try using the code i made for you.