SA-MP Forums Archive
Command executes but returns with error - 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: Command executes but returns with error (/showthread.php?tid=492112)



Command executes but returns with error - ZBits - 02.02.2014

Fixed


Re: Command executes but returns with error - Konstantinos - 02.02.2014

If it shows the unknown command, then it'll most likely cause a run time error.

Load crashdetect plugin and compile with debug info (-d3). Re-compile your scripts, start the server and type those commands again. In case it will display the unknown command, post your server log.


Re: Command executes but returns with error - ZBits - 02.02.2014

Currently this code returns with "Error: not near entry point"


Re: Command executes but returns with error - ZBits - 02.02.2014

Bump


Re: Command executes but returns with error - ZBits - 03.02.2014

Anyone??


Re: Command executes but returns with error - Pottus - 03.02.2014

Just find the line where it's failing usually I'll just a bunch of printf()'s to zero in on the faulty line I kind of prefer this way because 90 percent of the time I need some output of various variables so instead of wasting time and doing debugging with -d3 and crash detect it's faster to put in the printf()'s that I'm going to have to put in anyways.


Re: Command executes but returns with error - Don_Cage - 03.02.2014

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Just find the line where it's failing usually I'll just a bunch of printf()'s to zero in on the faulty line I kind of prefer this way because 90 percent of the time I need some output of various variables so instead of wasting time and doing debugging with -d3 and crash detect it's faster to put in the printf()'s that I'm going to have to put in anyways.
I agree with this. Helps you much more than what people thinks


Re: Command executes but returns with error - ZBits - 03.02.2014

Any examples?


Re: Command executes but returns with error - Don_Cage - 03.02.2014

pawn Код:
CMD:command(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        printf("player is connected");
        if(IsPlayerInRangeOfPoint(playerid, 2, 2.0, 2.0, 2.0);
        {
            printf("player is at the location");
etc.. Then check the consol and see if all is being sent


Re: Command executes but returns with error - Beckett - 03.02.2014

What command processor are you using?