SA-MP Forums Archive
[Ajuda] Erro no comando - 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] Erro no comando (/showthread.php?tid=572290)



Erro no comando - Bigdk - 26.04.2015

ai glr, to com um probleminha aqui, quando eu digito um comando errado, retorna nesse comando aqui

Код:
if(strcmp(cmd, "/respawncar", true) == 0)
	{
		if(Level[playerid] > 2000)
		{
			SetVehicleToRespawn(GetPlayerVehicleID(playerid));
			SendClientMessage(playerid, 0x0080FFAA, "Veнculo respawnado com sucesso!");
		}
		return 1;
	}
em vez de isso
Код:
return SendClientMessage(playerid, COLOR_RED, " COMANDO INVALIDO");



Re: Erro no comando - #Luca[S]. - 26.04.2015

Esse comando estб em um FS?


Re: Erro no comando - Bigdk - 26.04.2015

Nгo..


Re: Erro no comando - Nenzittow - 26.04.2015

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(!success)
	{
		new sCtring[128];
		format(sCtring, sizeof(sCtring), "Comando invбlido.", cmdtext);
		SendClientMessage(playerid, COLOR_RED, sCtring);
	}
	return 1;
}
Tente isso e remova esse(s):

Код:
return SendClientMessage(playerid, COLOR_RED, " COMANDO INVALIDO");



Re: Erro no comando - Bigdk - 26.04.2015

Prescisa mais nгo, ja consegui arrumar, mas vlw ai.