08.10.2017, 17:26
I'm trying to create group system, where a player is able to create his own group.
When player tries to create group it should check if group name is not already taken so I figured that I should load data of all groups there are on OnGameModeInit and once player is trying to create his own group I would just run a for cycle to check if the name is taken
So let's say I want to load all these groups into "GroupInfo" on OnGameModeInit
How should I do that?
Im using mysql R39-6
When player tries to create group it should check if group name is not already taken so I figured that I should load data of all groups there are on OnGameModeInit and once player is trying to create his own group I would just run a for cycle to check if the name is taken
So let's say I want to load all these groups into "GroupInfo" on OnGameModeInit
Код:
enum Data { ID, Name }; new GroupInfo[Amount_of_groups][Data];
Im using mysql R39-6