Coding game, need help with 'ranks' being able to use commands.

Hey

Im currently trying to code a game thas the following :

VIP Ranks - v
GM Rank -1
System Admin - 2

I need the following code to accept all 3 ranks to use the command, currently... it only allows the one listed second to use it (AKA '1,2' rank 2 ingame is able to use it, but rank 1 ISNT and i try adding 3, and I get a error saying " to many characters in character constant "

Any help as to how to get all 3 ranks to be able to use all 3 commands?
- Thanks

1
2
3
4
5
6
7
8
	static ChatCommand accountCommandTable[] =
	{
		{ "level",  '1,2,v', &ChatHandler::HandleAccountLevelCommand,  "Sets gm level on account. Pass it username and 0,1,2,3,az, etc.", NULL, 0, 0, 0 },
		{ "mute",   '1,2,v', &ChatHandler::HandleAccountMuteCommand,   "Mutes account for <timeperiod>.",                                 NULL, 0, 0, 0 },
		{ "unmute", '1,2,v', &ChatHandler::HandleAccountUnmuteCommand, "Unmutes account <x>",                                             NULL, 0, 0, 0 },
		{ NULL,     'h', NULL,                                     "",                                                                NULL, 0, 0, 0 }
	};
	dupe_command_table(accountCommandTable, _accountCommandTable);
Last edited on
Topic archived. No new replies allowed.