Teleport command..
#1

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

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

trying now

EDIT: Fixed Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)