18.09.2012, 17:53
I suppose you load all files on init?
Btw: Are you using my group system, or just inspired? Or doesn't it have to do with it?
pawn Код:
stock GroupNameExists(name[]) // Lets make a new stock to check if a name exists
{
for(new i = 0; i < MAX_GROUPS; i ++) // Start a loop from 0 till MAX_GROUPS
{
if(!strcmp(GroupInfo[i][GroupName],name,false)) return 1; // If strcmp returns 0, "name" and the group name matches. The loop will break
}
return 0; // If nothing found, return 0.
}