Teleport Cmd
#1

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); //
Reply
#2

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;
}
Reply
#3

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

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

Thanks for help...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)