need help with command bug - 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: need help with command bug (
/showthread.php?tid=607268)
need help with command bug -
1fret - 17.05.2016
ok i made a command and anytime someone uses it they command works but still send the player "SERVER:Unknown Command" error please help me out.
by the way its an /Ask command.
As you can see the command is executed but still get the error.
pawn Код:
CMD:ask(playerid, params[])
{
new Message[200];
if(!sscanf(params, "s[200]",Message))
{
format(astring, sizeof(astring), "Question: %s(%d) asked: %s", GetName(playerid), playerid, Message);
SendToAdmins(green,astring);
SendClientMessage(playerid, COLOR_GREEN, "Your Question has been sent to online Administrator(s)");
}
}
rep+ if help
Re: need help with command bug -
Micko123 - 17.05.2016
give me your command here
Re: need help with command bug -
1fret - 17.05.2016
Quote:
Originally Posted by Micko123
give me your command here
|
didnt want to repost it , so i edited it in look above ^
Re: need help with command bug -
Micko123 - 17.05.2016
PHP код:
CMD:ask(playerid, params[])
{
new Message[128];
if(!sscanf(params, "s[128]",Message))
{
format(astring, sizeof(astring), "Question: %s(%d) asked: %s", GetName(playerid), playerid, Message);
SendToAdmins(green,astring);
SendClientMessage(playerid, COLOR_GREEN, "Your Question has been sent to online Administrator(s)");
}
return 1;
}
Re: need help with command bug -
JawsCraft - 17.05.2016
You must return a value just like Micko123 said