View Single Post
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 11-13-2020 , 10:20   Re: How to do with one variable
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Code:
enum _:Types {     P_SNIPER,     P_NEMESIS } new g_iPlayerType[MAX_PLAYERS + 1][Types]

Code:
if(g_iPlayerType[id] == P_SNIPER) {     // your code here }
I don't want to use g_iPlayerType[Id] == P_SNIPER

I want to use like
Code:
if (g_iPlayerType[ id ] & P_SNIPER) { // Code }

How to do it ?

Last edited by Abhinash; 11-13-2020 at 10:20.
Abhinash is offline