01.11.2015, 14:48
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
For example, if your server crashed and the last message in server log was "BP4" that means that errot is on line
which comes right after that print function.
Try to locate your error line in that way
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(playerid, params[])
{
new playername[MAX_PLAYER_NAME];
print( "BP1" );
GetPlayerName(playerid, playername, sizeof(playername));
print( "BP2" );
for(new x; x < MAX_LANDS; x++)
{
print( "BP3" );
if(GangZoneCreate(playerid, LandInfo[x][landZone]))
{
print( "BP4" );
if(strcmp(playername, LandInfo[x][landOwner], true) == 0)
{
print( "BP5" );
editingLand[playerid] = x;
print( "BP6" );
break;
}
else
{
print( "BP7" );
editingLand[playerid] = -1;
print( "BP8" );
}
}
}
print( "BP9" );
ShowPlayerDialogEx(playerid, LANDSMAIN,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;
}
PHP код:
if(strcmp(playername, LandInfo[x][landOwner], true) == 0)
Try to locate your error line in that way

