Get value from MySQL Database
#1

Hi
I have troubles with the new MySQL version.
I can't get string value:

Here is the query:
Код:
mysql_format(ServerDB, query, sizeof(query), "SELECT `Lozinka` FROM `igraci` WHERE `KorisnickoIme` = '%e'", ime[playerid]);
mysql_tquery(ServerDB, query, "ProveriAkaunt", "i", playerid);
Here is the callback:
Код:
public ProveriAkaunt(playerid) {
        cache_get_value_name(0, iData[playerid][Lozinka], "Lozinka", 30);
        printf("LOZ: %s", iData[playerid][Lozinka]);
	return 1;
}
It prints just LOZ: which means the variable is null.
Reply


Messages In This Thread
Get value from MySQL Database - by NeroX98 - 11.12.2016, 18:33
Re: Get value from MySQL Database - by Sanady - 11.12.2016, 19:00
Re: Get value from MySQL Database - by NeroX98 - 11.12.2016, 19:04
Re: Get value from MySQL Database - by Vince - 11.12.2016, 19:32
Re: Get value from MySQL Database - by NeroX98 - 11.12.2016, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)