help with mysql.
#7

Well you will have to create a callback:
pawn Код:
forward LoadAccount(playerid);
public LoadAccount(playerid)
{
      new row, field, money;
      cache_get_data(row, field, db);
      if(rows == 1)
      {
             cache_get_field_content_int(0,"Money", money, db);
      }
}
And your query:
pawn Код:
mysql_format(mysql, query, sizeof(query), "SELECT * FROM playerdata WHERE username = '%e' LIMIT 1", pInfo[playerid][pName]);
                    mysql_tquery(mysql, query, "LoadAccount", "i", playerid);
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: 3 Guest(s)