Land Help
#1

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
Reply
#2

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?
Reply
#3

That Function is maybe not defined..
Reply
#4

Do you have stock IsPlayerInGangZone(playerid, gangzoneid) or (playerid, gangzoneid) in your script?
Reply
#5

i think no any idea about how can i add it?
Reply
#6

Hello!

From where do you have this function?
Reply
#7

ahhmm sir that doesnt matter but i shall be thankful if you help me
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)