SA-MP Forums Archive
Gang Colors! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gang Colors! (/showthread.php?tid=377712)



Gang Colors! - Stanford - 15.09.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, please help!

(Setting a player's color in his family) for example /families 11 owns color gray HOW!


Re: Gang Colors! - mamorunl - 15.09.2012

if(familyID[playerid] == 11) { SetPlayerColor(playerid, 0x777777AA); }

All speculative.


Re: Gang Colors! - JaKe Elite - 15.09.2012

Edit: Didn't read the thread sorry.
Wrong post.


Re: Gang Colors! - Stanford - 15.09.2012

Where should I post if(familyID[playerid] == 11) { SetPlayerColor(playerid, 0x777777AA); }



Re: Gang Colors! - Stanford - 15.09.2012

I put this: if(familyID[playerid] == 11) { SetPlayerColor(playerid, 0x777777AA); } under the OnPlayerSpawn and some errors appeared:

Quote:

C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(1929 : error 017: undefined symbol "familyID"
C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(1929 : warning 215: expression has no effect
C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(1929 : error 001: expected token: ";", but found "]"
C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(1929 : error 029: invalid expression, assumed zero
C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(1929 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

What should I do?!?!?!??!


Re: Gang Colors! - gtakillerIV - 15.09.2012

Never Mind, sorry for this post.


Re: Gang Colors! - mamorunl - 15.09.2012

As I said,, the code I posted was an example. It was not copy-paste ready code! I don't even know how you get your familycode.


Re: Gang Colors! - Stanford - 15.09.2012

Im going to PM you my families system


Re: Gang Colors! - mamorunl - 15.09.2012

I'd rather not. I am just helping you and not going to give you code that is copy-paste ready.


Re: Gang Colors! - Stanford - 15.09.2012

Please help me