01.11.2015, 13:45
Whenever I type /lands command it restarts my server but sometimes it works. Any idea about what the problem is?
Код:
CMD:lands(playerid, params[])
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
for(new x; x < MAX_LANDS; x++)
{
if(GangZoneCreate(playerid, LandInfo[x][landZone]))
{
if(strcmp(playername, LandInfo[x][landOwner], true) == 0)
{
editingLand[playerid] = x;
break;
}
else
{
editingLand[playerid] = -1;
}
}
}
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;
}

