SA-MP Forums Archive
Teleport Cmd - 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)
+--- Thread: Teleport Cmd (/showthread.php?tid=358743)



Teleport Cmd - Tuntun - 11.07.2012

Hello
i need some help...
i am trying to create a teleport cmd's... /MyRoom
so i get some error please help me to create this cmd..
this place :

AddPlayerClass(61,1638.0869,-1145.4698,23.9063,199.7605,0,0,0,0,0,0); //


Re: Teleport Cmd - clarencecuzz - 11.07.2012

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/myroom", true, 7) == 0)
    {
        SetPlayerPos(playerid, 1638.0869,-1145.4698,23.9063);
        SendClientMessage(playerid, 0x00FF00AA, "You have teleported to /MyRoom.");
        return 1;
    }
    return 1;
}



Re: Teleport Cmd - Tuntun - 11.07.2012

i get some error from you are script... see:

F:\Game.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
F:\Game.pwn(3) : error 017: undefined symbol "strcmp"
F:\Game.pwn(5) : error 017: undefined symbol "SetPlayerPos"
F:\Game.pwn(6) : error 017: undefined symbol "SendClientMessage"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.


Re: Teleport Cmd - clarencecuzz - 11.07.2012

Add
pawn Код:
#include <a_samp>
to the top of your script.


Re: Teleport Cmd - Tuntun - 11.07.2012

Thanks for help...