09.07.2010, 20:49
moO! to all
i wanna make it so that when a player enters a gang zone it says it to the player and to all the others
mOo!
It all works out til i compile and get these errors
I just need to get the :::: if(gangzone == area51) :::: and :::: if(gangzone == bigear) :::: defined which i think should been done already when i made the gang zone....
moO! helps meh please been waiting all day and night to add this but don't know how to add this moO!
i wanna make it so that when a player enters a gang zone it says it to the player and to all the others
pawn Код:
forward OnPlayerEnterGangZone(playerid);
pawn Код:
public OnPlayerEnterGangZone(playerid)
{
if(gangzone == bigear)
{
if(gTeam[playerid] == TEAM_GANGSTAS)
{
new string[256];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string),"%s Has Entered Mobstas GangZone",playername);
SendClientMessageToAll(COLOR_LIGHTPINK,string);
SendClientMessage(playerid, COLOR_LIME, "Becareful in the enemies gang zone!");
}
}
else
{
if(gangzone == area51)
{
if(gTeam[playerid] == TEAM_MOBSTAS)
{
new string[256];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string),"%s Has Entered Gangstas GangZone",playername);
SendClientMessageToAll(COLOR_LIGHTPINK,string);
SendClientMessage(playerid, COLOR_LIME, "Becareful in the enemies gang zone!");
}
}
}
return 1;
}
}
Код:
C:\Users\Charlie\Desktop\SAMP Server\gamemodes\BEvA51.pwn(1058) : error 017: undefined symbol "gangzone" C:\Users\Charlie\Desktop\SAMP Server\gamemodes\BEvA51.pwn(1072) : error 017: undefined symbol "gangzone" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
pawn Код:
//GangZoneZ!
new area51;
new bigear;
pawn Код:
//OnGameModeInIt
//Gang Zonez!
area51 = GangZoneCreate(-148.1130, 1634.3226, 405.7476, 2193.6560);
bigear = GangZoneCreate(-437.6672, 1445.6296, -243.5804, 1653.9866);
pawn Код:
//OnPlayerSpawn
//GangZonez
GangZoneShowForAll(area51 ,COLOR_CRIMSON);
GangZoneShowForAll(bigear, COLOR_GOLD);