R33 to R40 (some errors)
#3

First of all, you are using the wrong function. If you want to fetch a field using the column name, you have to use the function cache_get_value_name_int. Second, you need to save the said field into a destination, the function does not return the value of the field. Your code should look like:
pawn Code:
new cash;
cache_get_value_name_int(0, "Cash", cash);
SetPVarInt(playerid, "Cash", cash);
Reply


Messages In This Thread
R33 to R40 (some errors) - by Pitstop - 05.06.2020, 16:33
Re: R33 to R40 (some errors) - by zampa - 05.06.2020, 16:38
Re: R33 to R40 (some errors) - by Cell_ - 05.06.2020, 16:39
Re: R33 to R40 (some errors) - by ShadowMortar - 05.06.2020, 18:31
Re: R33 to R40 (some errors) - by Pitstop - 06.06.2020, 01:14
Re: R33 to R40 (some errors) - by SharpenBlade - 06.06.2020, 05:48
Re: R33 to R40 (some errors) - by ShadowMortar - 06.06.2020, 06:41
Re: R33 to R40 (some errors) - by Pitstop - 06.06.2020, 15:51
Re: R33 to R40 (some errors) - by Kwarde - 06.06.2020, 15:58
Re: R33 to R40 (some errors) - by Pitstop - 06.06.2020, 16:07

Forum Jump:


Users browsing this thread: 1 Guest(s)