08.12.2011, 04:02
Hey,
So i sorted the issue out with my random server crash seems to work fine now, however my variables don't, the MySQL information works fine however when i makeadmin someone it will save the in game var for only that game, for some reason my loading system isn't working.
I think that is the code, i had a friend who scripted the base for me, if anyone could help it would be great.
So i sorted the issue out with my random server crash seems to work fine now, however my variables don't, the MySQL information works fine however when i makeadmin someone it will save the in game var for only that game, for some reason my loading system isn't working.
pawn Код:
public OnQueryFinish(query[], resultid, extraid, connectionHandle) // this is for threaded SQL queries
{
switch(resultid)
{
case qDefault: return 1;
case qAuthentication:
{
mysql_store_result();
if(mysql_num_rows() == 1)
{
new szResult[500];
while(mysql_fetch_row_format(szResult, "|"))
{
sscanf(szResult, "e<p<|>s[25]s[30]ddddddddddddddffdddd>", PlayerInfo[extraid]);
SPD(extraid, diagAuthentication);
}
}
else if(mysql_num_rows() < 1) SPD(extraid, diagRegistration);
else SendClientMessage(extraid, COLOR_RED, "There appears to be a problem in our database, please contact an administrator.");
mysql_free_result();
}
}
return 1;
}