Quote:
Originally Posted by [O.z]Caroline
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) { format(string, sizeof(string), "{228B22}(ERRO) {FF0000}O comando {00FF00}%s {FF0000}й Invбlido!", cmdtext); return SendClientMessage(playerid, -1, string); } return 1; }
aconselho desta forma, porque quando a public for chamada e o comando existir, darб erro run time.
|
Caroline, jб me foi ъtil o de BlueX, e lembrando que a return antes do SendClientMessage dб warning
Correto \/
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
format(string, sizeof(string), "{228B22}(ERRO) {FF0000}O comando {00FF00}%s {FF0000}й Invбlido!", cmdtext);
SendClientMessage(playerid, -1, string);
}
return 1;
}