Gang-Colors -
Stanford - 27.08.2012
Hello, I need some help, I wanna add some gang colors to my script, so every gang-slot will own it own color, for example, The Mafia is RED, and Yakuza is gray, Im using [pgang] thing please help!
Skype: jamel.garra
Re: Gang-Colors -
Lordzy - 27.08.2012
Like this
pawn Код:
if(pInfo[playerid][ganggroove]==1)
{
SetPlayerColor(playerid,green);
//Like this you wanna make?
What I meant is when your some one joins to a gang,his name color should be changed to gang's color which the player joined.
Is it?
Re: Gang-Colors -
Stanford - 27.08.2012
Yeah, that what did I mean man, help me, I've 15 gangslot, how to put to every slot a color?
Re: Gang-Colors -
Stanford - 27.08.2012
HELP ME DUDE, HOW IM SEARCHING IN THE SCRIPT IF THERES A GANG SLOTS OR SOMETHING DOESNT WORK
Re: Gang-Colors -
Guitar - 27.08.2012
pawn Код:
if(pInfo[playerid][yourgangname]==1)
{
SetPlayerColor(playerid,thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
else if(pInfo[playerid][yoursecondgangname] == 1)
{
SetPlayerColor(playerid, thecoloryouwanttoadd);
}
Edit those and put them under "OnPlayerSpawn"
Re: Gang-Colors -
Stanford - 27.08.2012
i dont know these errors appeared:
C:\Users\TSC\Desktop\Next Evolution RolePlay\NE-RP 1\NE-RP_v5.2\NE-RP v5.2\gamemodes\NE-RP.pwn(19299) : error 017: undefined symbol "fMember"
C:\Users\TSC\Desktop\Next Evolution RolePlay\NE-RP 1\NE-RP_v5.2\NE-RP v5.2\gamemodes\NE-RP.pwn(19299) : warning 215: expression has no effect
C:\Users\TSC\Desktop\Next Evolution RolePlay\NE-RP 1\NE-RP_v5.2\NE-RP v5.2\gamemodes\NE-RP.pwn(19299) : error 001: expected token: ";", but found "]"
C:\Users\TSC\Desktop\Next Evolution RolePlay\NE-RP 1\NE-RP_v5.2\NE-RP v5.2\gamemodes\NE-RP.pwn(19299) : error 029: invalid expression, assumed zero
C:\Users\TSC\Desktop\Next Evolution RolePlay\NE-RP 1\NE-RP_v5.2\NE-RP v5.2\gamemodes\NE-RP.pwn(19299) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Gang-Colors -
Guitar - 27.08.2012
At line 19299 there is no "fMember" defined in your script and in the same line you're missing a bracket {} or () or ;