még mindog fos... nemértem miért mindent úgy csináltam ahogy írtad
public OnPlayerLogin(playerid)
{
new rows, fields;
cache_get_data(rows, fields);
get_int(rows, \"Created1\", pInfo[playerid][1][Created]);
get_int(rows, \"Created2\", pInfo[playerid][2][Created]);
get_int(rows, \"Created3\", pInfo[playerid][3][Created]);
get_int(rows, \"Skin1\", pInfo[playerid][1][skin]);
get_int(rows, \"Skin2\", pInfo[playerid][2][skin]);
get_int(rows, \"Skin3\", pInfo[playerid][3][skin]);
get_string(rows, \"CharName1\", nstr[1][playerid]);
get_string(rows, \"CharName2\", nstr[2][playerid]);
get_string(rows, \"CharName3\", nstr[3][playerid]);
}
format(query,sizeof(query), \"SELECT * FROM `karakterek` WHERE `UserName` = \'%s\'\",UserName[playerid]);
mysql_tquery(MySQL, query, \"OnPlayerLogin\", \"d\", playerid);
public OnCharacterDataLoading(playerid, now)
{
new rows, fields, name[512];
new pos[32];
cache_get_data(rows, fields);
format(name,sizeof(name), \"Admin%d\", now);
get_int(rows, name, pInfo[playerid][now][Admin]);
format(name,sizeof(name), \"Money%d\", now);
get_int(rows, name, pInfo[playerid][now][Money]);
format(name,sizeof(name), \"Hati%d\", now);
get_int(rows, name, pInfo[playerid][now][Hatizsak]);
format(name,sizeof(name), \"Sex%d\", now);
get_int(rows, name, pInfo[playerid][now][sex]);
format(name,sizeof(name), \"Age%d\", now);
get_int(rows, name, pInfo[playerid][now][Age]);
format(name,sizeof(name), \"Ora%d\", now);
get_int(rows, name, pInfo[playerid][now][Ora]);
format(name,sizeof(name), \"Perc%d\", now);
get_int(rows, name, pInfo[playerid][now][Perc]);
format(name,sizeof(name), \"Frakcio%d\", now);
get_int(rows, name, pInfo[playerid][now][Frakcio]);
format(name,sizeof(name), \"Munka%d\", now);
get_int(rows, name, pInfo[playerid][now][Munka]);
format(name,sizeof(name), \"Leader%d\", now);
get_int(rows, name, pInfo[playerid][now][Leader]);
format(name,sizeof(name), \"FFizu%d\", now);
get_int(rows, name, pInfo[playerid][now][FFizu]);
format(name,sizeof(name), \"MFizu%d\", now);
get_int(rows, name, pInfo[playerid][now][MFizu]);
format(name,sizeof(name), \"Felfiz%d\", now);
get_int(rows, name, pInfo[playerid][now][Felfiz]);
format(name,sizeof(name), \"pX%d\", now);
get_string(rows, name, pos);
pInfo[playerid][now][pX] = floatstr(pos);
format(name,sizeof(name), \"pY%d\", now);
get_string(rows, name, pos);
pInfo[playerid][now][pY] = floatstr(pos);
format(name,sizeof(name), \"pZ%d\", now);
get_string(rows, name, pos);
pInfo[playerid][now][pZ] = floatstr(pos);
format(name,sizeof(name), \"INV_Slot1_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot1]);
format(name,sizeof(name), \"INV_Slot2_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot2]);
format(name,sizeof(name), \"INV_Slot3_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot3]);
format(name,sizeof(name), \"INV_Slot4_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot4]);
format(name,sizeof(name), \"INV_Slot5_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot5]);
format(name,sizeof(name), \"INV_Slot6_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot6]);
format(name,sizeof(name), \"INV_Slot7_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot7]);
format(name,sizeof(name), \"INV_Slot8_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot8]);
format(name,sizeof(name), \"INV_Slot9_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot9]);
format(name,sizeof(name), \"INV_Slot10_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot10]);
format(name,sizeof(name), \"INV_Slot11_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot11]);
format(name,sizeof(name), \"INV_Slot12_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot12]);
format(name,sizeof(name), \"INV_Slot13_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot13]);
format(name,sizeof(name), \"INV_Slot14_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot14]);
format(name,sizeof(name), \"INV_Slot15_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Slot15]);
format(name,sizeof(name), \"INV_Star1_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star1]);
format(name,sizeof(name), \"INV_Star2_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star2]);
format(name,sizeof(name), \"INV_Star3_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star3]);
format(name,sizeof(name), \"INV_Star4_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star4]);
format(name,sizeof(name), \"INV_Star5_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star5]);
format(name,sizeof(name), \"INV_Star6_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star6]);
format(name,sizeof(name), \"INV_Star7_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star7]);
format(name,sizeof(name), \"INV_Star8_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star8]);
format(name,sizeof(name), \"INV_Star9_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star9]);
format(name,sizeof(name), \"INV_Star10_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star10]);
format(name,sizeof(name), \"INV_Star11_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star11]);
format(name,sizeof(name), \"INV_Star12_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star12]);
format(name,sizeof(name), \"INV_Star13_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star13]);
format(name,sizeof(name), \"INV_Star14_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star14]);
format(name,sizeof(name), \"INV_Star15_%d\", now);
get_int(rows, name, pInfo[playerid][now][iNV_Star15]);
}
format(query, sizeof(query),\"SELECT * FROM `karakterek` WHERE `UserName` = \'%s\'\",UserName[playerid]);
mysql_tquery(MySQL, query, \"OnCharacterDataLoading\", \"dd\", playerid,now);//OnCharacterDataLoading