SendPlayerToPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: SendPlayerToPlayer (
/showthread.php?tid=621980)
SendPlayerToPlayer -
TunicoJuniorBR - 17.11.2016
Ajuda nisso ai, estou criando um comando de /trazer e da esse erro:
PHP код:
error 017: undefined symbol "SendPlayerToPlayer"
Comando:
PHP код:
CMD:trazer(playerid, params[])
{
new targetid;
if(PlayerInfo[playerid][Admin] != 12 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF3C3CAA, "Vocк nгo tem permissгo para utilizar este comando");
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_GREY, " /trazer [playerid]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, " O jogador nгo estб conectado.");
if(targetid == playerid) return SendClientMessage(playerid, COLOR_RED, " Vocк nгo pode trazer vocк mesmo.");
SendPlayerToPlayer(targetid, playerid);
return 1;
}
Re: SendPlayerToPlayer -
zPain - 17.11.2016
PHP код:
stock SendPlayerToPlayer(playerid, targetid) {
if(!IsPlayerConnected(playerid) || !IsPlayerConnected(targetid)) {
return 0;
}
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(targetid));
SetPlayerInterior(playerid, GetPlayerInterior(targetid));
new Float:posx,
Float:posy,
Float:posz;
GetPlayerPos(targetid, posx, posy, posz);
SetPlayerPos(playerid,
posx,
posy,
posz
);
return 1;
}
Como o script nгo possui a funзгo, imagino que o comando tenha sido extraнdo de algum outro script. Nгo sei se hб algum detalhe extra no script do qual vocк extraiu o comando, mas o princнpio й esse.
Re: SendPlayerToPlayer -
TunicoJuniorBR - 17.11.2016
Funfou vlw