20.04.2009, 04:11
Hello,
i have this really weird problem, everytime i run my server it crashes, and no error comes up.
The script is from Sin City, so it's MySQL.
I know thats the problem, so does anyone know why?
Help!
i have this really weird problem, everytime i run my server it crashes, and no error comes up.
The script is from Sin City, so it's MySQL.
Код:
public LoadGroupPermissions(groupid) { new resultline[1024]; new permission[2][64]; new query[256]; ConnectToDatabase(); //if(gGroups[groupid][gSQLId]) return 0; printf("Loading Group %d Permissions...",groupid); format(query, sizeof(query), "SELECT id,permissionid FROM groups_permissions WHERE groupid = %d",groupid); printf(" SQL: %s",query); samp_mysql_query(query); samp_mysql_store_result(); new permissioncount; while(samp_mysql_fetch_row(resultline)==1) { printf("%s", resultline); split(resultline, permission, '|'); gGroupPermissions[groupid][gpSQLId][permissioncount] = strval(permission[0]); gGroupPermissions[groupid][gpPermissionid][permissioncount] = strval(permission[1]); permissioncount++; } }
Help!