[pawn]public SqlBetoltes(playerid)
{
new query[128];
Format(query, \"SELECT * FROM %s WHERE id = \'%d\'\", SQL_DB_Player, PlayerInfo[playerid][pID]);
mysql_query(query);
new datas[MAX_MYSQL_STRING], data[120][100];
mysql_store_result();
mysql_fetch_row(datas, \"|\");
mysql_free_result();
split(datas, data, \'|\');
//strmid(PlayerInfo[playerid][pNev], data[1], 0, strlen(data[1]), 25);
//strmid(PlayerInfo[playerid][pKey], data[2], 0, strlen(data[2]));
PlayerInfo[playerid][pLevel] = strval(data[3]);
PlayerInfo[playerid][pAdmin] = strval(data[4]);
PlayerInfo[playerid][pDonateRank] = strval(data[5]);
PlayerInfo[playerid][gPupgrade] = strval(data[6]);
PlayerInfo[playerid][pConnectTime] = strval(data[7]);
PlayerInfo[playerid][pSex] = strval(data[8]);
PlayerInfo[playerid][pAge] = strval(data[9]);
PlayerInfo[playerid][pOrigin] = strval(data[10]);
PlayerInfo[playerid][pMarried] = strval(data[11]);
strmid(PlayerInfo[playerid][pMarriedTo], data[12], 0, strlen(data[12]), 25);
WantedLevel[playerid] = strval(data[13]);
PlayerInfo[playerid][pKills] = strval(data[14]);
//WantedLevel[playerid] = strval(data[15]);//pDeaths
PlayerInfo[playerid][pArrested] = strval(data[15]);
PlayerInfo[playerid][pFem] = strval(data[16]);
PlayerInfo[playerid][pFishes] = strval(data[17]);
PlayerInfo[playerid][pBiggestFish] = strval(data[18]);
PlayerInfo[playerid][pHeadValue] = strval(data[19]);
PlayerInfo[playerid][pJailed] = strval(data[20]);
PlayerInfo[playerid][pJailTime] = strval(data[21]);
PlayerInfo[playerid][pWins] = strval(data[22]);
PlayerInfo[playerid][pLoses] = strval(data[23]);
PlayerInfo[playerid][pTut] = strval(data[24]);
PlayerInfo[playerid][pMegbizas] = strval(data[25]);
PlayerInfo[playerid][pWarns] = strval(data[26]);
PlayerInfo[playerid][pKWarns] = strval(data[27]);
PlayerInfo[playerid][pDrogido] = strval(data[29]);
PlayerInfo[playerid][pAS] = strval(data[29]);
PlayerInfo[playerid][pExp] = strval(data[30]);
PlayerInfo[playerid][pCash] = strval(data[31]);
PlayerInfo[playerid][pAccount] = strval(data[32]);
PlayerInfo[playerid][pKaja] = strval(data[33]);
PlayerInfo[playerid][pPnumber] = strval(data[34]);
PlayerInfo[playerid][pPhousekey] = strval(data[35]);
PlayerInfo[playerid][pPbiskey] = strval(data[36]);
PlayerInfo[playerid][pPcarkey] = strval(data[37]);
new splits[20][10];
split(data[38], splits, \',\');
PlayerInfo[playerid][pMuanyag] = strval(splits[0]);
PlayerInfo[playerid][pCserje] = strval(splits[1]);
PlayerInfo[playerid][pMak] = strval(splits[2]);
PlayerInfo[playerid][pCannabis] = strval(splits[3]);
PlayerInfo[playerid][pMats] = strval(splits[4]);
PlayerInfo[playerid][pKokain] = strval(splits[5]);
PlayerInfo[playerid][pHeroin] = strval(splits[6]);
PlayerInfo[playerid][pMarihuana] = strval(splits[7]);
PlayerInfo[playerid][pPhoneBook] = strval(data[40]);
PlayerInfo[playerid][pCDPlayer] = strval(data[41]);
PlayerInfo[playerid][pLottoNr] = strval(data[42]);
split(data[43], splits, \',\');
PlayerInfo[playerid][pFuel][uZEMANYAGTIPUS_BENZIN] = strval(splits[0]);
PlayerInfo[playerid][pFuel][uZEMANYAGTIPUS_DIESEL] = strval(splits[1]);
PlayerInfo[playerid][pCigiUsed] = strval(data[44]);
PlayerInfo[playerid][pCigi] = strval(data[45]);
PlayerInfo[playerid][pNikotin] = strval(data[46]);
PlayerInfo[playerid][pGyujto] = strval(data[47]);
PlayerInfo[playerid][pPia] = strval(data[48]);
PlayerInfo[playerid][pJob1] = strval(data[49]);
PlayerInfo[playerid][pJob2] = strval(data[50]);
PlayerInfo[playerid][pContractTime] = strval(data[51]);
PlayerInfo[playerid][pContractTime2] = strval(data[52]);
PlayerInfo[playerid][pPayCheck] = strval(data[53]);
PlayerInfo[playerid][pPayDay] = strval(data[54]);
PlayerInfo[playerid][pPayDayHad] = strval(data[55]);
PlayerInfo[playerid][pLeader] = strval(data[56]);
PlayerInfo[playerid][pMember] = strval(data[57]);
PlayerInfo[playerid][pRank] = strval(data[59]);
split(data[60], splits, \',\');
PlayerInfo[playerid][pDetSkill] = strval(splits[0]);
PlayerInfo[playerid][pSexSkill] = strval(splits[1]);
PlayerInfo[playerid][pBoxSkill] = strval(splits[2]);
PlayerInfo[playerid][pLawSkill] = strval(splits[3]);
PlayerInfo[playerid][pMechSkill] = strval(splits[4]);
PlayerInfo[playerid][pJackSkill] = strval(splits[5]);
PlayerInfo[playerid][pCarSkill] = strval(splits[6]);
PlayerInfo[playerid][pNewsSkill] = strval(splits[7]);
PlayerInfo[playerid][pDrugsSkill] = strval(splits[8]);
PlayerInfo[playerid][pCookSkill] = strval(splits[9]);
PlayerInfo[playerid][pFishSkill] = strval(splits[10]);
PlayerInfo[playerid][pRiasztoSkill] = strval(splits[11]);
PlayerInfo[playerid][pHackingSkill] = strval(splits[12]);
PlayerInfo[playerid][pFegyokerSkill] = strval(splits[12]);
split(data[61], splits, \',\');
PlayerInfo[playerid][pCarLic] = strval(splits[0]);
PlayerInfo[playerid][pFlyLic] = strval(splits[1]);
PlayerInfo[playerid][pBoatLic] = strval(splits[2]);
PlayerInfo[playerid][pFishLic] = strval(splits[3]);
PlayerInfo[playerid][pGunLic] = strval(splits[4]);
PlayerInfo[playerid][pMotorJogsi] = strval(splits[5]);
PlayerInfo[playerid][pKamionJogsi] = strval(splits[6]);
PlayerInfo[playerid][pChar] = strval(data[62]);
PlayerInfo[playerid][pModel] = strval(data[63]);
split(data[64], splits, \',\');
PlayerInfo[playerid][pAlcoholPerk] = strval(splits[0]);
PlayerInfo[playerid][pDrugPerk] = strval(splits[1]);
PlayerInfo[playerid][pMiserPerk] = strval(splits[2]);
PlayerInfo[playerid][pPainPerk] = strval(splits[3]);
PlayerInfo[playerid][pTraderPerk] = strval(splits[4]);
split(data[65], splits, \',\');
PlayerInfo[playerid][pCPosX] = floatstr(splits[0]);
PlayerInfo[playerid][pCPosY] = floatstr(splits[1]);
PlayerInfo[playerid][pCPosZ] = floatstr(splits[2]);
PlayerInfo[playerid][pCInt] = strval(splits[3]);
PlayerInfo[playerid][pCVW] = strval(splits[4]);
split(data[66], splits, \',\');
PlayerInfo[playerid][pCelet] = floatstr(splits[0]);
PlayerInfo[playerid][pCpajzs] = floatstr(splits[1]);
split(data[67], splits, \',\');
for(new x = 0; x < 12; x++)
PlayerInfo[playerid][pFegyver]
/*PlayerInfo[playerid][pGun0] = strval(splits[0]);
PlayerInfo[playerid][pGun1] = strval(splits[1]);
PlayerInfo[playerid][pGun2] = strval(splits[2]);
PlayerInfo[playerid][pGun3] = strval(splits[3]);
PlayerInfo[playerid][pGun4] = strval(splits[4]);
PlayerInfo[playerid][pGun5] = strval(splits[5]);
PlayerInfo[playerid][pGun6] = strval(splits[6]);
PlayerInfo[playerid][pGun7] = strval(splits[7]);
PlayerInfo[playerid][pGun8] = strval(splits[8]);
PlayerInfo[playerid][pGun9] = strval(splits[9]);
PlayerInfo[playerid][pGun10] = strval(splits[10]);
PlayerInfo[playerid][pGun11] = strval(splits[11]);*/
split(data[68], splits, \',\');
for(new x = 0; x < 12; x++)
PlayerInfo[playerid][pTolteny]
/*PlayerInfo[playerid][pAmmo0] = strval(splits[0]);
PlayerInfo[playerid][pAmmo1] = strval(splits[1]);
PlayerInfo[playerid][pAmmo2] = strval(splits[2]);
PlayerInfo[playerid][pAmmo3] = strval(splits[3]);
PlayerInfo[playerid][pAmmo4] = strval(splits[4]);
PlayerInfo[playerid][pAmmo5] = strval(splits[5]);
PlayerInfo[playerid][pAmmo6] = strval(splits[6]);
PlayerInfo[playerid][pAmmo7] = strval(splits[7]);
PlayerInfo[playerid][pAmmo8] = strval(splits[8]);
PlayerInfo[playerid][pAmmo9] = strval(splits[9]);
PlayerInfo[playerid][pAmmo10] = strval(splits[10]);
PlayerInfo[playerid][pAmmo11] = strval(splits[11]);*/
PlayerInfo[playerid][pMuted] = strval(data[69]);
// a 70eshez ne rakj semmit!! Az az UtoljaraAktiv!
PlayerInfo[playerid][pInt] = strval(data[71]);
PlayerInfo[playerid][pLocal] = strval(data[72]);
PlayerInfo[playerid][pPos_x] = floatstr(data[73]);
PlayerInfo[playerid][pPos_y] = floatstr(data[74]);
PlayerInfo[playerid][pPos_z] = floatstr(data[75]);
PlayerInfo[playerid][pCarTime] = strval(data[76]);
PlayerInfo[playerid][pLokator] = strval(data[77]);
PlayerInfo[playerid][pCigiFuggoseg] = strval(data[78]);
PlayerInfo[playerid][pSwattag] = strval(data[79]);
PlayerInfo[playerid][pSwatRang] = strval(data[80]);
PlayerInfo[playerid][pKituntetes] = strval(data[81]);
PlayerInfo[playerid][pSzallitott] = strval(data[82]);
PlayerInfo[playerid][pSpawnchange] = strval(data[83]);
strmid(PlayerInfo[playerid][pAdminAlnev], data[84], 0, strlen(data[84]), 25);
//Clint - 85
PlayerInfo[playerid][pTeloEgyenleg] = strval(data[86]);
PlayerInfo[playerid][pKotszer] = strval(data[87]);
PlayerInfo[playerid][pUtlevel] = strval(data[88]);
PlayerInfo[playerid][pStilus] = strval(data[89]);
split(data[90], splits, \',\');
PlayerInfo[playerid][pBankSzamla] = strval(splits[0]);
PlayerInfo[playerid][pBankSzamlaSzam] = strval(splits[1]);
PlayerInfo[playerid][pBankSzamlaJelszo] = strval(splits[2]);
PlayerInfo[playerid][pC4] = strval(data[91]);
PlayerInfo[playerid][pHitman] = strval(data[92]);
strmid(PlayerInfo[playerid][pHitmanNev], data[93], 0, strlen(data[93]), MAX_PLAYER_NAME);
split(data[94], splits, \',\');
PlayerInfo[playerid][pPremiumCsomag] = strval(splits[0]);
PlayerInfo[playerid][pPremiumPont] = strval(splits[1]);
PlayerInfo[playerid][pPremiumIdo] = strval(data[95]);
PlayerInfo[playerid][pBerlo] = strval(data[96]);
//PlayerInfo[playerid][pPower] = strval(data[97]); EZ LETT AZ \"ONLINE\" - KI NE TÖRÖLD!!!!!!
split(data[98], splits, \',\');
PlayerInfo[playerid][pSzemelyi] = strval(splits[0]);
PlayerInfo[playerid][pLakcimkartya] = strval(splits[1]);
PlayerInfo[playerid][pMunkaVallalasi] = strval(splits[2]);
split(data[99], splits, \',\');
PlayerInfo[playerid][pHitel] = strval(splits[0]);
PlayerInfo[playerid][pFelvettHitel] = strval(splits[1]);
PlayerInfo[playerid][pHitelOra] = strval(splits[2]);
PlayerInfo[playerid][pHitelElteltOra] = strval(splits[3]);
PlayerInfo[playerid][pZarolva] = strval(splits[4]);
PlayerInfo[playerid][pJegy] = strval(data[100]);
split(data[101], splits, \',\');
MedicBill[playerid] = strval(splits[0]);
Animban[playerid] = strval(splits[1]);
//MedicBill[playerid] = strval(data[101]);
PlayerInfo[playerid][pSSS] = strval(data[102]);
strmid(PlayerInfo[playerid][pJailOK], data[103], 0, strlen(data[103]), 128);
split(data[104], splits, \',\');
PlayerInfo[playerid][pLkocsi] = strval(splits[0]);
PlayerInfo[playerid][pLkocsiar] = strval(splits[1]);
PlayerInfo[playerid][pLaptop] = strval(splits[2]);
PlayerInfo[playerid][pHack] = strval(splits[3]);
split(data[105], splits, \',\');
PlayerInfo[playerid][pRCKocsi] = strval(splits[0]);
//106 - UserCP_PW
//strmid(PlayerInfo[playerid][pEmail], data[107], 0, strlen(data[107]), 128);
JarmuKulcs[playerid] = strval(data[108]); //108 - VillanySzerelo//Jármûkulcs Lett!
strmid(PlayerInfo[playerid][pJailtAdta], data[109], 0, strlen(data[109]), 32);
PlayerInfo[playerid][pSzemuveg] = strval(data[110]);
//111 - UserCP_UjEsemeny
PlayerInfo[playerid][pMaszk] = strval(data[112]);
split(data[113], splits, \',\');
PlayerInfo[playerid][pBot] = strval(splits[0]);
PlayerInfo[playerid][pCsali] = strval(splits[1]);
PlayerInfo[playerid][pDamil] = strval(splits[2]);
UresUveg[playerid] = strval(data[114]);
PlayerInfo[playerid][pVokitoki] = strval(data[115]);
PlayerInfo[playerid][pGyemant] = strval(data[116]);
PlayerInfo[playerid][pGyemant] = strval(data[116]);
return 1;
}[/pawn]
Ja de amúgy pár dolgot elment de nem mindeggyiket és nem értem miért :S