Unknown command message do not work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Unknown command message do not work (
/showthread.php?tid=612691)
Unknown command message do not work -
MauriceTank - 20.07.2016
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}RoBoTzel: Unknow command type /n(ewbie) for help.");
}
else
{
printf("Player %s %s", PlayerData[playerid][Name], cmdtext);
return 1;
}
return 1;
}
he its work but not corectly comand /help exist i type /help and he say me that message
help me? how to resolve this bug
Re: Unknown command message do not work -
Codeah - 20.07.2016
Just use the following
Quote:
public OnPlayerCommandText(playerid,cmdtext[])
{
//all commands should be in here!!!
return sendclientmessage(playerid, -1, "Your UNKNOWN Message Here");
}
|
Re: Unknown command message do not work -
MauriceTank - 20.07.2016
great thanks that it work... thx man
Re: Unknown command message do not work -
Codeah - 20.07.2016
Quote:
Originally Posted by MauriceTank
great thanks that it work... thx man
|
No Problem!