SA-MP Forums Archive
Retrieving data from MySQL - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Retrieving data from MySQL (/showthread.php?tid=196526)



[SOLVED] Retrieving data from MySQL - hanzen - 05.12.2010

Hello..

I'm struggling with a MySQL issue. Going to retrieve data from a field. Such as the players level, money and so on.

Using this MySQL connector.

Source:
Код:
	format(query, sizeof(query), "SELECT * FROM `players` WHERE `name` = '%s';", tempname);
	mysql_query(query); mysql_store_result();
	
	mysql_fetch_field("level",  data);
	PlayerInfo[playerid][pLevel] = strval(data);
The Warning:
Код:
C:\Users\rAped\Desktop\HDRP NEW!\gamemodes\hd-rp.pwn(386) : warning 213: tag mismatch



Re: Retrieving data from MySQL - Ash. - 05.12.2010

Which line is 386?

This forum requires that you wait 120 seconds between posts. Please try again in 3 seconds.