[Ajuda] zCMD
#1

Й simples:
Queria saber como que faz pra criar dois CMD: com o mesmo nome.
Quando deixo dois com o mesmo nome isso acontece:

error 021: symbol already defined: "cmd_subir"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Nгo tem como criar 2 comandos com o mesmo nome. Tem como criar 2 comandos para chamar 1 comando especнfico
Reply
#3

Quote:
Originally Posted by FallweN
Посмотреть сообщение
Nгo tem como criar 2 comandos com o mesmo nome. Tem como criar 2 comandos para chamar 1 comando especнfico
Como assim?
Reply
#4

Resumindo, tem 2 comandos subir com o mesmo nome

Ou por quer vocк nгo fechou uma chave de um comando acima do subir
Reply
#5

Se eu deixar sу um ta certo nenhum erro, porйm queria criar vбrios pois nгo vai ser usado em um sу local. Sу que quando coloco dois com o mesmo nome fazendo a mesma funзгo em locais diferentes, da esse erro.
Tem algum jeito de fazer dois CMD com o mesmo nome ex:
Код:
CMD:subir(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
	{
	SetPlayerPos(playerid, x, y, z);
	return 1;
	}
return 1;
}

// coord diferentes

CMD:subir(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
	{
	SetPlayerPos(playerid, x, y, z);
	return 1;
	}
return 1;
}
Reply
#6

PHP код:
CMD:subir(playerid)
{
if(
IsPlayerInRangeOfPoint(playerid2.0xyz) && IsPlayerInRangeOfPoint(playerid2.0x2y2z2))
    {
    
SetPlayerPos(playeridxyz);
    return 
1;
    }
return 
1;

Reply
#7

PHP код:
CMD:subir(playerid)
{
 if (
IsPlayerInRangeOfPoint(playerid2.0xyz))
 {
  
SetPlayerPos(playeridxyz);
 }
 else if (
IsPlayerInRangeOfPoint(playerid2.0xyz))
 {
  
SetPlayerPos(playeridxyz);
 }
return 
1;

Ou .
PHP код:
CMD:subir(playerid)
{
 if (
IsPlayerInRangeOfPoint(playerid2.0xyz) || IsPlayerInRangeOfPoint(playerid2.0xyz))
 {
  
SetPlayerPos(playeridxyz);
 }
 return 
1;

Reply
#8

Quote:
Originally Posted by IlanZ
Посмотреть сообщение
PHP код:
CMD:subir(playerid)
{
if(
IsPlayerInRangeOfPoint(playerid2.0xyz) && IsPlayerInRangeOfPoint(playerid2.0x2y2z2))
    {
    
SetPlayerPos(playeridxyz);
    return 
1;
    }
return 
1;

Deu certo mano, Obrigado.
Reply
#9

Quote:
Originally Posted by capron
Посмотреть сообщение
PHP код:
CMD:subir(playerid)
{
 if (
IsPlayerInRangeOfPoint(playerid2.0xyz))
 {
  
SetPlayerPos(playeridxyz);
 }
 else if (
IsPlayerInRangeOfPoint(playerid2.0xyz))
 {
  
SetPlayerPos(playeridxyz);
 }
return 
1;

Ou .
PHP код:
CMD:subir(playerid)
{
 if (
IsPlayerInRangeOfPoint(playerid2.0xyz) || IsPlayerInRangeOfPoint(playerid2.0xyz))
 {
  
SetPlayerPos(playeridxyz);
 }
 return 
1;

Deu certo esse que que queria, ir pra locais diferentes com dois comandos. Obrigado ae
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)