Help with zcmd
#1

Does anyone know how to make teleport command in zcmd? I realy need it.
Reply
#2

pawn Код:
CMD:tele(playerid, params[])
{
      SetPlayerPos(playerid, COORDSHERE);
      return 1;
}
Reply
#3

Quote:
Originally Posted by Windows32
Посмотреть сообщение
pawn Код:
CMD:tele(playerid, params[])
{
      SetPlayerPos(playerid, COORDSHERE);
      return 1;
}
i tried this way already and got this kinda error:

Код:
C:\Users\Windows7\Desktop\Test\gamemodes\test.pwn(293) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

pawn Код:
CMD:tele(playerid)
{
      SetPlayerPos(playerid, COORDSHERE);
      return 1;
}
works for me
Reply
#5

Did you add the coordinates? Or did you just leave "COORDSHERE".
Reply
#6

Quote:
Originally Posted by JhnzRep
Посмотреть сообщение
Did you add the coordinates? Or did you just leave "COORDSHERE".
Of course i added coords, and i already found solution:

pawn Код:
CMD:ls(playerid,params[])
{
    SetPlayerPos(playerid,1395.7988,-753.5182,95.9959);
    return 1
;
}
i needed to add this ":" before brackets and then it worked.
Reply
#7

You should have posted your code...See because you were obviously missing ";" after return..

But you got it fixed now..Good job
Reply
#8

Quote:
Originally Posted by JhnzRep
Посмотреть сообщение
You should have posted your code...See because you were obviously missing ";" after return..

But you got it fixed now..Good job
Thanks . BTW i didnt notice it because i made it like regular teleport with strcmp but with zcmd .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)