need help with command bug
#1

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
Reply
#2

give me your command here
Reply
#3

Quote:
Originally Posted by Micko123
Посмотреть сообщение
give me your command here
didnt want to repost it , so i edited it in look above ^
Reply
#4

PHP код:
CMD:ask(playeridparams[])
{
    new 
Message[128];
    if(!
sscanf(params"s[128]",Message))
    {
        
format(astringsizeof(astring), "Question: %s(%d) asked: %s"GetName(playerid), playeridMessage);
        
SendToAdmins(green,astring);
        
SendClientMessage(playeridCOLOR_GREEN"Your Question has been sent to online Administrator(s)");
    }
        return 
1;

Reply
#5

You must return a value just like Micko123 said
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)