GetPlayerName(playerid, pname, sizeof(pname));
format(stringsize, sizeof(stringsize), "SELECT * FROM "SQL_TABLE" WHERE Name = '%s'", pname);
mysql_query(stringsize, -1, -1, RegistrationSystemConnection);
mysql_store_result(RegistrationSystemConnection);
new playerfilesplit[24][256], playerloadingarray[256];
mysql_fetch_row_format(playerloadingarray,"|", RegistrationSystemConnection);
split(playerloadingarray, playerfilesplit, '|');
PlayerAccount[playerid][Pid] = strval(playerfilesplit[0]);
PlayerAccount[playerid][Money] = strval(playerfilesplit[4]);
PlayerAccount[playerid][AdminLevel] = strval(playerfilesplit[5]);
PlayerAccount[playerid][Vip] = strval(playerfilesplit[6]);
PlayerAccount[playerid][Skin] = strval(playerfilesplit[7]);
PlayerAccount[playerid][Score] = strval(playerfilesplit[8]);
PlayerAccount[playerid][Job] = strval(playerfilesplit[9]);
PlayerAccount[playerid][Faction] = strval(playerfilesplit[10]);
PlayerAccount[playerid][FactionRank] = strval(playerfilesplit[11]);
PlayerAccount[playerid][Tester] = strval(playerfilesplit[12]);
PlayerAccount[playerid][WeaponPackages] = strval(playerfilesplit[13]);
PlayerAccount[playerid][DriverLic] = strval(playerfilesplit[14]);
PlayerAccount[playerid][WeaponLic] = strval(playerfilesplit[15]);
PlayerAccount[playerid][Developer] = strval(playerfilesplit[16]);
PlayerAccount[playerid][Banned] = strval(playerfilesplit[17]);
PlayerAccount[playerid][Achi1] = strval(playerfilesplit[18]);
PlayerAccount[playerid][Achi2] = strval(playerfilesplit[19]);
PlayerAccount[playerid][Achi3] = strval(playerfilesplit[20]);
PlayerAccount[playerid][Achi4] = strval(playerfilesplit[21]);
PlayerAccount[playerid][Achi5] = strval(playerfilesplit[22]);
PlayerAccount[playerid][Achi6] = strval(playerfilesplit[23]);
format(stringsize, sizeof(stringsize), "SELECT * FROM "SQL_TABLE" WHERE Name = '%s'", pname);
[17:26:15] CMySQLHandler::Query(SELECT * FROM users WHERE Name = 'Tony_Salvati') - Successfully executed. [17:26:15] >> mysql_store_result( Connection handle: 1 ) [17:26:15] CMySQLHandler::StoreResult() - Result was stored. [17:26:20] >> mysql_query( Connection handle: 1 )
Originally Posted by TTJJ
Hi oliverrud,
Do any commands respond after you attempt to login? Or do they all say: SERVER: Uknown Command? Cheers, TJ |
playerfilesplit[24][256]
playerfilesplit[24][64]
Originally Posted by TTJJ
Thanks for the quick reply oliverrud,
This is a problem I have experienced a few times. You could try reducing the size of the variables you retrieve from the MySQL server. For example. You get 24 strings, all 256 big: Код:
playerfilesplit[24][256] Eg: Код:
playerfilesplit[24][64] Cheers, TJ |