01.07.2018, 06:05
You have to create enums normally...
Then use variable
like
And error of undefined playerid is occurs when you doing this in OnGameModeInit or where they playerid is not defined in Callback then use for statement. Like
PHP код:
enum blabla
{
CMD_OWNER,
CMD_PATRIOT//, etc..
}
like
PHP код:
new PlayerInfo[MAX_PLAYERS][blabla];
PHP код:
// OnGameModeInit()
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
// Your statements here...
}