mam tady kousek kodu a potrebuji ho upravit. Zda se mi ze stadyma se nacitaji accounty tabulka accountu
if(result)
{
do
{
Field *fields = result->Fetch();
uint8 allowedSecurityLevel = fields[7].GetUInt8();
UpdateRealm(fields[0].GetUInt32(), fields[1].GetCppString(),fields[2].GetCppString(),fields[3].GetUInt32(),fields[4].GetUInt8(), fields[5].GetUInt8(), fields[6].GetUInt8(), (allowedSecurityLevel <= SEC_ADMINISTRATOR ? AccountTypes(allowedSecurityLevel) : SEC_ADMINISTRATOR), fields[8].GetFloat() );
if(init)
sLog.outString("Added realm \"%s\".", fields[1].GetString());
} while( result->NextRow() );
delete result;
}
}
Ty gm acc se nacitaji z jedne tabulky(account) v databazi Realmd "account>gmlvl" ale chci aby se nacitali na dvakrat na "account>gmlvl_fun" a "account>gmlvl_bliz"
proste ten jeden rozdelit na dva, nevym si s tim rady pls help. Je to do wow.
tady je dalsi kod
http://pastebin.com/m3bccca8a