help with mysql.
#9

Like this:
pawn Код:
mysql_query("SELECT `Money` FROM `accounts` WHERE `username` = '%s'", pInfo[playerid][pName]);//fetching the data
mysql_store_result();//storing the data
new money = mysql_fetch_int();//inserting the data in your variable
mysql_free_result();//and then removing the data which we stored earlier
Reply


Messages In This Thread
help with mysql. - by Equality - 27.06.2014, 17:56
Re: help with mysql. - by Faisal_khan - 27.06.2014, 18:28
Re: help with mysql. - by Equality - 27.06.2014, 18:32
Re: help with mysql. - by Faisal_khan - 27.06.2014, 18:51
Re: help with mysql. - by Equality - 27.06.2014, 18:56
Re: help with mysql. - by Konstantinos - 27.06.2014, 19:03
Re: help with mysql. - by Faisal_khan - 27.06.2014, 19:04
Re: help with mysql. - by Equality - 27.06.2014, 19:06
Re: help with mysql. - by Faisal_khan - 27.06.2014, 19:18
Re: help with mysql. - by Equality - 27.06.2014, 19:27

Forum Jump:


Users browsing this thread: 6 Guest(s)