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)
+--- Thread: mysql (
/showthread.php?tid=625925)
mysql -
fastayko - 08.01.2017
how to get the Column value where username = player username
instead of getting Column value using row index
cache_get_value_name_int(ROW_INDEX, "money", int_dest);
Re: mysql -
Vince - 08.01.2017
Row index isn't what you think that it is. If you need a specific player you should select that player in the WHERE-clause of the query.
Re: mysql -
fastayko - 08.01.2017
so what i must write in the row index? and what is it
Re: mysql -
BiosMarcel - 08.01.2017
If you choose a player per select, you should theoretically only get 1 row as result, meaning the index has to be 0(first and only row)
What is the row index?
An index is the position of an item in a list. Meaning, that in this case it is the position of the row in the returned mysql result set.