Little help!
#3

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
Are you sure this code is right?, please re-check.

pawn Код:
if(GangZones[4][OwnerTeam] != GetPlayerTeam(playerid))
And
pawn Код:
if(GangZones[9][OwnerTeam] != GetPlayerTeam(playerid))
Or, try these code
pawn Код:
if(GangZones[4][OwnerTeam] == GetPlayerTeam(playerid))
{
    if(RandomJobCP[0][JobID])
    {
        DrugStats += 20;
        format(slova,sizeof(slova),"[Drug - House] "embed_white"Amount of comps in drug house is %d !",DrugStats);
        SendClientMessage(playerid,0xFFD900FF,slova);
    }
} else return SendClientMessage(playerid,0xFFFFFFF,""embed_red"[Drug - House] "embed_white"Comps in drug house are not filled becouse you don`t own drug house.Own it and then comps will be filled!");
if(GangZones[9][OwnerTeam] == GetPlayerTeam(playerid))
{
    if(RandomJobCP[1][JobID])
    {
        WeaponStats += 20;
        format(slova,sizeof(slova),"[Ammunation - Factory] "embed_white"Amount of comps in ammunation factory is %d !",DrugStats);
        SendClientMessage(playerid,0xFFD900FF,slova);
    }
} else return SendClientMessage(playerid,0xFFFFFFF,""embed_red"[Ammunation - Factory] "embed_white"Comps in old ammunation factory are not filled becouse you don`t own ammunation factory.Own it and then comps will be filled!");
I've experienced this before, using return with brackets
Uhh it`s not problem in that problem is in that I need to detect in which zone is player...
Reply


Messages In This Thread
Little help! - by Sanady - 20.10.2013, 09:16
Re: Little help! - by Patrick - 20.10.2013, 09:21
Re: Little help! - by Sanady - 20.10.2013, 09:47
Re: Little help! - by Patrick - 20.10.2013, 09:53
Re: Little help! - by Sanady - 20.10.2013, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)