[MySQL] Problem trying to load weapons
#4

Quote:
Originally Posted by X337
Посмотреть сообщение
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);
Tried with that last code, now I'm not getting any error except the tag mismatch from this line

Код:
for(new i, j = cache_get_row_count(g_SQL); i < j; i++)
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: 1 Guest(s)