Quote:
Originally Posted by Jochemd
I suppose you load all files on init?
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. }
Btw: Are you using my group system, or just inspired? Or doesn't it have to do with it?
|
I am using GarHouse filterscript. I changed everything to group. This code will detect the groups into the files or can you edit my command and add if the group already exist?