Command executes but returns with error
#1

Fixed
Reply
#2

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.
Reply
#3

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

Bump
Reply
#5

Anyone??
Reply
#6

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

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

Any examples?
Reply
#9

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

What command processor are you using?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)