I Get The Following Errors Please Help
#5

I'm guessing you don't have 'return 0;' at the end of the OnPlayerCommandText code. Must be the very last line of the commands.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/mycommand", true))
    {
        //code
        return 1;
    }
    return 0; // this is what your missing?
}
Reply


Messages In This Thread
I Get The Following Errors Please Help - by HayZatic - 04.07.2011, 18:21
Re: I Get The Following Errors Please Help - by RelaxCafe - 04.07.2011, 18:24
Re: I Get The Following Errors Please Help - by HayZatic - 04.07.2011, 18:55
Re: I Get The Following Errors Please Help - by MadeMan - 04.07.2011, 21:02
Re: I Get The Following Errors Please Help - by dr.pepper - 04.07.2011, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)