27.11.2010, 17:58
(
Последний раз редактировалось Kitten; 24.11.2013 в 05:22.
)
Solved
#define TEAM_X 0
#define TEAM_Y 0
switch(gTeam[playerid])
{
case TEAM_X: {/*do something*/}
case TEAM_Y: {/*do something else*/}
}
// Would be the same as:
switch(gTeam[playerid])
{
case 0: {/*do something*/}
case 0: {/*do something else*/}
// They both would do the same.
}
#define TEAM_ZOMBIE 0 #define TEAM_HUMAN 1
#define PLAYER_ZOMBIE 0 // Zombie #define PLAYER_HUNTER 1 // Zombie #define PLAYER_CHARGER 2 // Zombie #define PLAYER_HUMAN 3 // Human #define PLAYER_MEDIC 4 // Human #define PLAYER_ARMY 5 // Human
but how would i make so i made this right now
pawn Код:
same as humans to 3? |