cordinate teleport
#6

Quote:
Originally Posted by cosbraa
Посмотреть сообщение
pawn Код:
CMD:tp(playerid, params[])
{
    new int, Float: x, Float: y, Float: z;
    if(sscanf(params, "dfff", int, x, y, z))
        return SendClientMessage(playerid, GREY, "SYNTAX: /tp [int] [x] [y] [z]");
       
    SetPlayerPos(playerid, x, y, z);
    SetPlayerInterior(playerid, int);
    return SendClientMessage(playerid, -1, "Teleport successful.");;
}
Added interior value incase you want to teleport to interiors aswell.
hi i got this errors when i compiled

C:\Users\YOUNG MONEY\Desktop\SAMP scripts\1\Newport City Roleplay\gamemodes\EG-RP.pwn(35725) : warning 217: loose indentation
C:\Users\YOUNG MONEY\Desktop\SAMP scripts\1\Newport City Roleplay\gamemodes\EG-RP.pwn(35725) : error 029: invalid expression, assumed zero
C:\Users\YOUNG MONEY\Desktop\SAMP scripts\1\Newport City Roleplay\gamemodes\EG-RP.pwn(35725) : error 017: undefined symbol "cmd_tp"
C:\Users\YOUNG MONEY\Desktop\SAMP scripts\1\Newport City Roleplay\gamemodes\EG-RP.pwn(35725) : error 029: invalid expression, assumed zero
C:\Users\YOUNG MONEY\Desktop\SAMP scripts\1\Newport City Roleplay\gamemodes\EG-RP.pwn(35725) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
cordinate teleport - by popystone - 16.09.2012, 00:36
Re: cordinate teleport - by clarencecuzz - 16.09.2012, 00:41
Re: cordinate teleport - by cosbraa - 16.09.2012, 01:30
Re: cordinate teleport - by clarencecuzz - 16.09.2012, 01:33
Re: cordinate teleport - by JaKe Elite - 16.09.2012, 01:34
Re: cordinate teleport - by popystone - 17.09.2012, 01:10
Re: cordinate teleport - by newbienoob - 17.09.2012, 01:18
Re: cordinate teleport - by JustinAn - 17.09.2012, 01:44
Re: cordinate teleport - by XtremeR - 17.09.2012, 06:04

Forum Jump:


Users browsing this thread: 2 Guest(s)