Command Restarts The Server
#9

Well, if you did everything correctly, I have no idea why there's no line number.

You can locate the line with error in another way - print something on each line of your command and then look into server log for the last printed value. Right after it you'll find error line

PHP код:
CMD:lands(playeridparams[])
{
    new 
playername[MAX_PLAYER_NAME];
        print( 
"BP1" );
    
GetPlayerName(playeridplayernamesizeof(playername));
        print( 
"BP2" );
    for(new 
xMAX_LANDSx++)
    {
        print( 
"BP3" );
        if(
GangZoneCreate(playeridLandInfo[x][landZone]))
        {
                        print( 
"BP4" );
               if(
strcmp(playernameLandInfo[x][landOwner], true) == 0)
            {
                                print( 
"BP5" );
                
editingLand[playerid] = x;
                                print( 
"BP6" );
                break;
            }
            else
            {
                            print( 
"BP7" );
                
editingLand[playerid] = -1;
                            print( 
"BP8" );
            }
        }
    }
        print( 
"BP9" );
    
ShowPlayerDialogEx(playeridLANDSMAIN,DIALOG_STYLE_LIST"Lands - Select an option""Toggle Lands on Map\nBuild\nEdit a Building\nDestroy a Building\nBuy Land\nSell Land\nDestroy all objects""Select""Cancel");
    return 
1;

For example, if your server crashed and the last message in server log was "BP4" that means that errot is on line
PHP код:
if(strcmp(playernameLandInfo[x][landOwner], true) == 0
which comes right after that print function.

Try to locate your error line in that way
Reply


Messages In This Thread
Command Restarts The Server - by Alpha000 - 01.11.2015, 13:45
Re: Command Restarts The Server - by prineside - 01.11.2015, 13:54
Re: Command Restarts The Server - by Alpha000 - 01.11.2015, 13:59
Re: Command Restarts The Server - by prineside - 01.11.2015, 14:07
Re: Command Restarts The Server - by Alpha000 - 01.11.2015, 14:13
Re: Command Restarts The Server - by prineside - 01.11.2015, 14:16
Re: Command Restarts The Server - by Alpha000 - 01.11.2015, 14:20
Re: Command Restarts The Server - by Alpha000 - 01.11.2015, 14:32
Re: Command Restarts The Server - by prineside - 01.11.2015, 14:48
Re: Command Restarts The Server - by Alpha000 - 01.11.2015, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)