Posts: 21
Threads: 11
Joined: Mar 2016
Reputation:
0
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);
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 21
Threads: 11
Joined: Mar 2016
Reputation:
0
so what i must write in the row index? and what is it
Posts: 1,219
Threads: 51
Joined: Jul 2012
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.