[Ajuda] Server:Unknow Command - 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: [Ajuda] Server:Unknow Command (
/showthread.php?tid=605604)
Server:Unknow Command -
GustavoVader - 22.04.2016
Eu criei esse comando aqui para entrar no Spawn Civil
PHP код:
if(strcmp("/entrar", cmdtext, true, 10))
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1598.4441, -2282.2300, 5.7695))
{
SetPlayerPos(playerid, 1583.7435, -2286.5540, 13.5396);
new txt[128]; format(txt, sizeof(txt), "%s Vocк entrou do Spawn Civil.", servermsg);
SendClientMessage(playerid, WHITE, txt);
}
Ele retorna como "Server:Unknow Command" e nгo executa comando.
Alguйm sabe por que?
________
Re: Server:Unknow Command -
GustavoVader - 22.04.2016
EU RESOLVI O PROBLEMA.
Mas eu ainda quero entender a callback OnPlayerCommandText porque nгo entendi a diferenзa entre colocar o "!"na frente do comando.
Quote:
Originally Posted by GustavoVader
Eu criei esse comando aqui para entrar no Spawn Civil
PHP код:
if(strcmp("/entrar", cmdtext, true, 10))
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1598.4441, -2282.2300, 5.7695))
{
SetPlayerPos(playerid, 1583.7435, -2286.5540, 13.5396);
new txt[128]; format(txt, sizeof(txt), "%s Vocк entrou do Spawn Civil.", servermsg);
SendClientMessage(playerid, WHITE, txt);
}
Ele retorna como "Server:Unknow Command" e nгo executa comando.
Alguйm sabe por que?
________
|
Re: Server:Unknow Command -
ipsLuan - 22.04.2016
Existem regras para se fazer Double-post.
Respeite-a!
Em relaзгo ao
!: Este sнmbolo emite a ideia de negaзгo.
Na prбtica:
PHP код:
if(!IsPlayerAdmin(playerid))
print("O jogador nгo й admin RCON");