SA-MP Forums Archive
Factions with Enums - 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: Factions with Enums (/showthread.php?tid=452837)



Factions with Enums - ConnorHunter - 22.07.2013

I've seen a load of tutorials that to make factions like pFac[MAX_PLAYERS]; ect. Is it possible to make a successful faction with enums

eg

enum pInfo ect ect
{
pMember,
ect

}


and then.. if(PlayerInfo[playerid][pMember] ect ect..


Re: Factions with Enums - mahdi499 - 22.07.2013

yes as i understood,it is possible,and a lot easier for you to use enums


Re: Factions with Enums - ConnorHunter - 22.07.2013

Brilliant, thanks.