I want to set some variables like
new ammo, clip, gunid
to the results of which are obtained by an sql query.
So for example, I do the query.
Code:
dbi_query(Sql:dbc,"SELECT `plr_weapons`.`ammo`=ammo, `plr_weapons`.`clip`=clip, `plr_weapons`.`mode`=mode, `plr_weapons`.`extra`=extra FROM `plr_weapons` WHERE SteamID='$s'", authid)
plr_weapons is the table
ammo, clip, mode, extra are the colums in that table.
I want to extract the numbers from the sql, and set them as the variables
Code:
new ammo, clip, mode, extra
As you can see, I tried from the above, but it doesn't work

.
Thanks.
__________________