[MySQL] Problem trying to load weapons
#2

Second parameter for cache_get_value_int function is field name, and third parameter is for reference variable.
Example:
Код:
cache_get_value_int(i, "field_name", weaponid);
cache_get_value_int(i, "field_name", ammo);
If you want to get value by its index, use cache_get_value_index_int instead.
Example:
Код:
cache_get_value_index_int(i, 0, weaponid);
cache_get_value_index_int(i, 1, ammo);
Reply


Messages In This Thread
[MySQL] Problem trying to load weapons - by nikotragedy - 04.03.2017, 15:14
Re: [MySQL] Problem trying to load weapons - by X337 - 04.03.2017, 15:17
Re: [MySQL] Problem trying to load weapons - by nikotragedy - 04.03.2017, 15:19
Re: [MySQL] Problem trying to load weapons - by nikotragedy - 04.03.2017, 17:04
Re: [MySQL] Problem trying to load weapons - by Konstantinos - 04.03.2017, 17:43
Re: [MySQL] Problem trying to load weapons - by nikotragedy - 04.03.2017, 18:05

Forum Jump:


Users browsing this thread: 4 Guest(s)