SA-MP Forums Archive
Help! More 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! More teleport (/showthread.php?tid=119580)



Help! More teleport - sXecookie - 08.01.2010

Quote:

C:\Users\Hampus\Desktop\Freeroam\filterscripts\LSa irLVairSFairAA.pwn(32) : warning 202: number of arguments does not match definition
C:\Users\Hampus\Desktop\Freeroam\filterscripts\LSa irLVairSFairAA.pwn(32) : warning 202: number of arguments does not match definition
C:\Users\Hampus\Desktop\Freeroam\filterscripts\LSa irLVairSFairAA.pwn(36) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.




Re: Help! More teleport - CJ101 - 08.01.2010

Show us lines 32 and 36.


Re: Help! More teleport - sXecookie - 08.01.2010

32-36:
Quote:

SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.6908, 178.3117, cmdtext);
return 1;
}

}

Whole teleport:
Quote:

if (!strcmp("/drag", cmdtext, true))
{
SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.6908, 178.3117, cmdtext);
return 1;
}

}




Re: Help! More teleport - CJ101 - 08.01.2010

Код:
SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.6908);



Re: Help! More teleport - sXecookie - 08.01.2010

Now it's just this. Idk if I can ignore this?
Quote:

C:\Users\Hampus\Desktop\Freeroam\filterscripts\LSa irLVairSFairAA.pwn(36) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.




Re: Help! More teleport - CJ101 - 08.01.2010

put

Код:
 return 0;
at the end of OnPlayerCommandText, and you should be fixed


Re: Help! More teleport - sXecookie - 08.01.2010

Thanks

Just one more question...

So this is correct? :P
Quote:

if (!strcmp("/drag", cmdtext, true))
{
SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.690;
return 1;
}
return 0;
}




Re: Help! More teleport - Doppeyy - 08.01.2010

pawn Код:
public OnPlayerCommandText
{    
     if (!strcmp("/drag", cmdtext, true))
    {
        SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.6908);
        return 1;
    }
    return 0;
}



Re: Help! More teleport - sXecookie - 08.01.2010

Danke!!


Re: Help! More teleport - Doppeyy - 08.01.2010

Your welcome we are here to help .

[Doppeyy