10.01.2010, 01:13
I've got this:
But when Listitem 3 is called, nothing happends.
What is this because of?
pawn Код:
if(listitem == 3) // OnDialog...Blablabla.
{
new File[64];
new area = GetAreaID(playerid);
if(area == -255) return SendClientMessage(playerid,COLOR_DARKRED,".: Info: You're not inside a zone :.");
format(File,64,"/Zones/%d",area);
dini_Remove(File);
GangZoneHideForAll(AreaInfo[area][aZone]);
GangZoneDestroy(AreaInfo[area][aZone]);
SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Zone deleted :.");
return 1;
}
stock GetAreaID(playerid) //Bottom of script
{
for(new a=0; a<=MAX_AREAS; a++)
{
if(IsPlayerInArea(playerid, AreaInfo[a][aMaxX], AreaInfo[a][aMinX], AreaInfo[a][aMaxY], AreaInfo[a][aMinY])) return a;
}
return -255;
}
What is this because of?