Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock GetGroupIDByName(name[])
- {
- new query[128];
- new groupName[35];
- mysql_format(mysqlconnect, query, sizeof(query), "SELECT groupName FROM user_group WHERE groupName = '%s'", name);
- mysql_query(mysqlconnect, query, true);
- new count = cache_num_rows();
- if(count > 0)
- {
- for(new i = 0; i < count; i++)
- {
- cache_get_value_name(0, "groupName", groupName);
- return groupName;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment