[Ajuda] Comandos nao funcionam - 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] Comandos nao funcionam (
/showthread.php?tid=570429)
Comandos nao funcionam -
Bigdk - 10.04.2015
Ai galera eu to criando um servidor do zero( no Bare do sa-mp mesmo), bom, eu criei alguns comandos, mas quando eu vo no server os comandos nao funcionam, alguem pd ajuda?
Re: Comandos nao funcionam -
arakuta - 10.04.2015
Cуdigos.
Re: Comandos nao funcionam -
Bigdk - 10.04.2015
.....
Quote:
public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];
cmd = strtok(cmdtext, idx);
if(strcmp("/armas", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_LIST, "Weapon", "Pistol\nShotgun\nSub-MechineGun\nAssault\nSniper", "Choose", "Cancel");
return 1;
}
if(strcmp(cmdtext,"/minhaprofissao", true) == 0)
{
if(Profissao[playerid] == Lixeiro)
{
SendClientMessage(playerid, Amarelo,"MSG");
}
else
{
SendClientMessage(playerid, COLOR_RED,"Vocк nгo pode usar esse comando");
}
if(Profissao[playerid] == Taxista)
{
SendClientMessage(playerid, Amarelo,"MSG");
}
return 1;
}
return 0;
}
}
|
Re: Comandos nao funcionam -
ipsLuan - 10.04.2015
Jб que vocк estб comeзando um servidor do 0, use zcmd, й mais fбcil e mais prбtico.