[INI]Groupname detect?
#5

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?
Reply


Messages In This Thread
[INI]Groupname detect? - by Admigo - 18.09.2012, 17:22
Re: [INI]Groupname detect? - by Jochemd - 18.09.2012, 17:23
Re: [INI]Groupname detect? - by Admigo - 18.09.2012, 17:30
Re: [INI]Groupname detect? - by Jochemd - 18.09.2012, 17:53
Re: [INI]Groupname detect? - by Admigo - 18.09.2012, 17:59
Re: [INI]Groupname detect? - by Jochemd - 18.09.2012, 18:29
Re: [INI]Groupname detect? - by Admigo - 18.09.2012, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)