23.10.2013, 05:11
PHP код:
format(query, sizeof(query), "SELECT * FROM kasutajad WHERE Nimi = '%s' LIMIT 0,1", PlayerName(playerid));
mysql_function_query(SQL, query, true, "OnPlayerDataLoad", "is[256]", playerid, query);
PHP код:
forward OnPlayerDataLoad(playerid, query);
public OnPlayerDataLoad(playerid, query)
{
SendClientMessage(playerid, COLOR_ORANGE, "Please wait...");
new rows, fields, string[256];
cache_get_data(rows, fields);
if(!rows)
{
N2itaDialog(playerid, 0);
}
else
{
format(string, sizeof(string), "%s", query);
sscanf(query, "e<p<|>s[16]s[64]s[256]iiiiis[64]s[64]s[64]iis[64]s[64]s[64]i>", KasutajaInfo[playerid]);
N2itaDialog(playerid, 1);
}
return 1;
}
Why he dont load player data?
KasutajaInfo[playerid][pPassword] is empty, but in database is:
-----------------------------------------------------------------------------
Код:
B913D5BBB8E461C2C5961CBE0EDCDADFD29F068225CEB37DA6DEFCF89849368F8C6C2EB6A4C4AC75775D032A0ECFDFE8550573062B653FE92FC7B8FB3B7BE8D6