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



Teleport command.. - M3NK5 - 20.12.2010

Hey, I'm getting this error when I compile this script..

pawn Код:
C:\Documents and Settings\user\Desktop\Mitchells Stuff\server\gamemodes\grandlarc.pwn(320) : warning 202: number of arguments does not match definition
The command is:
pawn Код:
if(!strcmp(cmdtext,"/gotony",true))
    {
        SetPlayerPos(playerid,297.02529907,400.30484009,81.51259613,6.0);
        return 1;
    }
Anyone know the problem?
Thanks


Re: Teleport command.. - ExeC - 20.12.2010

pawn Код:
SetPlayerPos(playerid,297.02529907,400.30484009,81.51259613,6.0);
To

pawn Код:
SetPlayerPos(playerid,297.02529907,400.30484009,81.51259613);
You do not need the '6.0', it's for MoveObject commands, it regulates the speed of the object that you want to move.

Not sure if there is some problems with the coordinates, they do not look like normal, but not sure.


Re: Teleport command.. - M3NK5 - 20.12.2010

trying now

EDIT: Fixed Thanks