Land Help -
Alpha000 - 29.10.2015
When i compile it gives me Error
Код:
D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(19123) : error 017: undefined symbol "IsPlayerInGangZone"
Line :
Код:
if(IsPlayerInGangZone(playerid, LandInfo[x][landZone]))
Whole Command :
Код:
CMD:lands(playerid, params[])
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
for(new x; x < MAX_LANDS; x++)
{
if(IsPlayerInGangZone(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", "Select", "Cancel");
return 1;
}
I really need help please someone help me
Re: Land Help -
iKarim - 29.10.2015
Are you forgot an include?
Are you sure you didn't delete this function/stock form your gamemode?
Are you sure theres function like that even?
Re: Land Help -
TheRaGeLord - 29.10.2015
That Function is maybe not defined..
Re: Land Help -
ATGOggy - 29.10.2015
Do you have stock IsPlayerInGangZone(playerid, gangzoneid) or (playerid, gangzoneid) in your script?
Re: Land Help -
Alpha000 - 29.10.2015
i think no any idea about how can i add it?
AW: Land Help -
Mencent - 29.10.2015
Hello!
From where do you have this function?
Re: Land Help -
Alpha000 - 29.10.2015
ahhmm sir that doesnt matter but i shall be thankful if you help me
Re: Land Help -
AbyssMorgan - 29.10.2015
add
PHP код:
new GangZoneArea[MAX_GANG_ZONES];
stock GangZoneCreateEx(Float:minx,Float:miny,Float:maxx,Float:maxy,worldid = -1,interiorid = -1){
new tid = GangZoneCreate(minx,miny,maxx,maxy);
GangZoneArea[tid] = CreateDynamicRectangle(minx,miny,maxx,maxy,worldid,interiorid,-1);
return tid;
}
stock GangZoneDestroyEx(zone){
DestroyDynamicArea(GangZoneArea[zone]);
GangZoneDestroy(zone);
}
stock bool:IsPlayerInGangZone(playerid,zone){
if(IsPlayerInDynamicArea(playerid,GangZoneArea[zone])) return true;
return false;
}
replace GangZoneCreate to GangZoneCreateEx
GangZoneDestroy to GangZoneDestroyEx
worldid, interiorid - They are used to check whether a player is in a certain VW and INT
rest unchanged