mOO! helps
#1

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
pawn Код:
forward OnPlayerEnterGangZone(playerid);
mOo!

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;
}
}
It all works out til i compile and get these errors
Код:
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.
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....

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);
moO! helps meh please been waiting all day and night to add this but don't know how to add this moO!
Reply
#2

mOO!? i need help with this some 1 helps mehh!!
Reply
#3

Ehm, 'gangzone' isn't defined. You might wish to add an extra parameter so it'll be like:

pawn Код:
public OnPlayerEnterGangZone(playerid,gangzone)
Don't forget to update the shitz.
Reply
#4

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Ehm, 'gangzone' isn't defined. You might wish to add an extra parameter so it'll be like:

pawn Код:
public OnPlayerEnterGangZone(playerid,gangzone)
Don't forget to update the shitz.
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;
}
}
just add the gang zones but i got all that i just dont know how to make it show when enters gang zone lol but atleast i gave it an effort and i know its not defined thats what the
pawn Код:
forward OnPlayerEnterGangZone(playerid);
was there
Reply
#5

You mean to check if a player enters a gang zone? No native function for that, so you'll need to work with boring timers and variables.
Reply
#6

lol i may just leave it out now since its not really necessary
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)