Problem with Loading Stuff from Mysql
#2

I tried the same with my players row
Код:
format(string, sizeof(string), "SELECT Password, Admin, Gun1, Ammo1 FROM players WHERE id = '%d' LIMIT 1", PlayerInfo[playerid][pID]);
	samp_mysql_query(string);
	samp_mysql_store_result();
	samp_mysql_fetch_row(Data);
	if(sscanf(Data,"p|sddd",
	PlayerInfo[playerid][pPassword],
	PlayerInfo[playerid][pAdmin],
	PlayerInfo[playerid][pGun1],
	PlayerInfo[playerid][pAmmo1]
	)) print("Fail");
And it works. Why does the same thing doesnt work with my other table in mysql? Could someone please help me, i really need to get it working.
Reply


Messages In This Thread
Problem with Loading Stuff from Mysql - by Doktor - 31.05.2009, 23:08
Re: Problem with Loading Stuff from Mysql - by Doktor - 01.06.2009, 09:28
Re: Problem with Loading Stuff from Mysql - by MenaceX^ - 01.06.2009, 09:35
Re: Problem with Loading Stuff from Mysql - by Doktor - 01.06.2009, 09:47
Re: Problem with Loading Stuff from Mysql - by Doktor - 01.06.2009, 17:00
Re: Problem with Loading Stuff from Mysql - by Ignas1337 - 01.06.2009, 17:07
Re: Problem with Loading Stuff from Mysql - by Doktor - 01.06.2009, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)