19.11.2009, 16:14
It actually did help, thanks alot.
But when you sovle an error another one occurs.
Its something wrong in this code:
It should be right but maybe there is something wrong, anyone with an eye for details?
But when you sovle an error another one occurs.
Its something wrong in this code:
Quote:
public LoadGroups() { new resultline[1024]; new permission[2][255]; new query[256]; ConnectToDatabase(); printf("Loading Permission Groups..."); format(query, sizeof(query), "SELECT id, name FROM groups"); printf(" SQL: %s",query); samp_mysql_query(query); samp_mysql_store_result(); new text[255]; new permissioncount; while(samp_mysql_fetch_row(resultline)==1) { printf("%s", resultline); split(resultline, permission, '|'); gGroups[permissioncount][gSQLId] = strval(permission[0]); text = unreal_escape_string(permission[1]); strmid(gGroups[permissioncount][gName],text, 0, strlen(text), 256); // LoadGroupPermissions(gGroups[permissioncount][gSQLId]); permissioncount++; } samp_mysql_free_result(); for(new i=0;i<100;i++) { if(gGroups[i][gSQLId]) { LoadGroupPermissions(gGroups[i][gSQLId]); } } return 1; } |