open.mp forum
[Pawn] [ FIXED ] cache_get_value_int_ovrld after add for on index SQL - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] [ FIXED ] cache_get_value_int_ovrld after add for on index SQL (/showthread.php?tid=1826)



[ FIXED ] cache_get_value_int_ovrld after add for on index SQL - PutuSuhartawan - 2021-03-31

FIXED





Quote:Retrieves a value from the result set as a decimal number.



Parameters:





Code:
(row_idx, const column_name[], &destination)



row_idx The row index (starts at '0').



const column_name[] The column name.

&destination The variable to store the number into.



Return Values:



1 on success, 0 on failure.







Code:
new int_dest;

cache_get_value_name_int(2, "money", int_dest);

printf("The value in the third row and in the column 'money' is '%d'.", int_dest);



https://github.com/pBlueG/SA-MP-MySQL/wiki#cache_get_value_name_int



[Image: 113122179-f40fb180-9245-11eb-8125-e2117c09945a.png]