Issue with MySQL based server
#6

It actually did help, thanks alot.

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;
}

It should be right but maybe there is something wrong, anyone with an eye for details?
Reply


Messages In This Thread
Issue with MySQL based server - by Timpa - 16.11.2009, 20:16
Re: Issue with MySQL based server - by Sergei - 16.11.2009, 20:24
Re: Issue with MySQL based server - by VIRUXE - 18.11.2009, 19:05
Re: Issue with MySQL based server - by Timpa - 18.11.2009, 20:14
Re: Issue with MySQL based server - by UberSocks - 19.11.2009, 07:27
Re: Issue with MySQL based server - by Timpa - 19.11.2009, 16:14
Re: Issue with MySQL based server - by UberSocks - 20.11.2009, 06:41

Forum Jump:


Users browsing this thread: 1 Guest(s)