Unknown Command problem.
#1

Everytime I perform a command it displays the default "Unknown Command" message, I'm using Y_Commands, was using ZCMD but I though it was a problem with that so changed it all to Y_Commands but the problem still occurs, the only commands that work and ones that display dialogs, however it still displays "Unknown Command".
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new string[128];
        format(string, sizeof(string), "{AA3333}'%s'{FFFF00} is an unknown command, please use /help for a list of commands.", cmdtext);
        SendClientMessageEx(playerid, COLOR_YELLOW, string);
    }
    return true;
}
As you can see I have 'return 1;'.

Edit: I also get this in the chat log (Using debug) -
[03:55:40] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[03:55:40] [debug] Stack index (STK) is 0x1346214, heap index (HEA) is 0x13461E8
[03:55:40] [debug] Backtrace (most recent call first):
[03:55:40] [debug] #0 0x0028581c()+0x0 from LGRP.amx
[03:55:40] [debug] #1 0x0028581c()+0x64 from LGRP.amx

.. numbers go up (Same message) ..

[03:55:38] [debug] #671 public @_yCwat()+0x28 from LGRP.amx
[03:55:38] [debug] #672 public @yC_wat()+0x1ea994 from LGRP.amx
[03:55:38] [debug] #673 native CallRemoteFunction() from samp-server.exe
[03:55:38] [debug] #674 public OnPlayerCommandText()+0x27abc0 from LGRP.amx

EDIT: FIXED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)