[AJUDA] Erro: Comando desconhecido -
Shadoww5 - 02.04.2011
Eu queria saber como faz pra colocar essa mensagem: "[ERRO] Comando desconhecido" quando alguem coloca um comando errado.
E alem disso queria saber como faz pra colocar aquela mensagem na cabeзa do administrador: "Administrador: Posso Ajudar ?!" e "AFK: Administrador Ausente !"
Re: [AJUDA] Erro: Comando desconhecido -
[]Fabricio[] - 02.04.2011
No return da public OnPlayerCommandText, ao inves de usar
use:
pawn Код:
return SendClientMessage(playerid, COR, "[ERRO] Comando desconhecido");
}
Sobre colocar essa mensagem acima do admin, veja essa funзгo
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Re: [AJUDA] Erro: Comando desconhecido -
Shadoww5 - 02.04.2011
no OnPlayerCommandText tem isso aqui:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new cmd[256];
new tmp[256];
new giveplayerid, moneys, idx;
cmd = strtok(cmdtext, idx);
Entгo como eu vo colocar la ?
Re: [AJUDA] Erro: Comando desconhecido -
[]Fabricio[] - 02.04.2011
Quote:
Originally Posted by Shadoww5
no OnPlayerCommandText tem isso aqui:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new string[256]; new playermoney; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; new cmd[256]; new tmp[256]; new giveplayerid, moneys, idx; cmd = strtok(cmdtext, idx);
Entгo como eu vo colocar la ?
|
coloque no ъltimo return da public.
Re: [AJUDA] Erro: Comando desconhecido -
Shadoww5 - 02.04.2011
nao tem nenhum return a public ta assim
Re: [AJUDA] Erro: Comando desconhecido -
[]Fabricio[] - 02.04.2011
Quote:
Originally Posted by Shadoww5
nao tem nenhum return a public ta assim
|
WTF ?!
Se ela tivesse assim, desse jeito que vocк ta falando concerteza daria warn..
Veja com atenзгo.. lуgicamente abaixo disso que vocк mandou tem os comandos, e depois dos comandos tem o return da public..
Re: [AJUDA] Erro: Comando desconhecido -
JonathanFeitosa - 02.04.2011
No Final da Public OnPlayerCommandText Vai Ter :
Troque Essa Linha Apenas Para
pawn Код:
return SendClientMessage(playerid, acordamensagem, "Esse Comando й Desconhecido No Nosso Servidor.");
}
Re: [AJUDA] Erro: Comando desconhecido -
Shadoww5 - 02.04.2011
Ela esta assim. Depois dela vem outro comando veja ae \/
pawn Код:
~//---------------------------<[ OnPlayerCommandText ]>--------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new cmd[256];
new tmp[256];
new giveplayerid, moneys, idx;
cmd = strtok(cmdtext, idx);
//--------------------------------[Conce]---------------------------------------
if(strcmp(cmd, "/senha", true) == 0)
Re: [AJUDA] Erro: Comando desconhecido -
JonathanFeitosa - 02.04.2011
й no Final Nгo No Comeзo Mano
ai depois quando achar fais isso
Quote:
Originally Posted by Jonathan_Feitosa
No Final da Public OnPlayerCommandText Vai Ter :
Troque Essa Linha Apenas Para
pawn Код:
return SendClientMessage(playerid, acordamensagem, "Esse Comando й Desconhecido No Nosso Servidor."); }
|
Re: [AJUDA] Erro: Comando desconhecido -
[]Fabricio[] - 02.04.2011
#semcomentбrios.
Na public OnPlayerCommandText,
DEPOIS DOS COMANDOS tem o
return 0;
mude para return SendClientMessage(playerid, COR, "[ERRO] Comando desconhecido");
}