09.02.2012, 15:47
Hi all I want help by making teleport cmd i don't know how to make that and i don't know how to take the Float X Float Y Float Z Pos
Pls help
Pls help

if(!strcmp(cmdtext, "/tp"))
{
SendClientMessage(playerid, 0xFFFFFFFF, "telelported!");
SetPlayerPos(playerid,0.00,0.00,0.00);//it will teleport player at a farm!
return 1;
}
if(strcmp("/bayside", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -2271.0764, 2317.8457, 4.8202);
SetPlayerFacingAngle(playerid, 180);
SendClientMessage(playerid, 0x00FFFFAA, "You have been teleported to Bayside.");
return 1;
}
C:\Documents and Settings\bob\Desktop\Satdm\SATDM~RP v13.5\Gamemodes\SATDM_v13.pwn(50727) : error 010: invalid function or declaration C:\Documents and Settings\bob\Desktop\Satdm\SATDM~RP v13.5\Gamemodes\SATDM_v13.pwn(50732) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
50727 & 50732