04.04.2017, 14:12
Quote:
Code:
warning 213: tag mismatch warning 213: tag mismatch warning 213: tag mismatch Code:
forward OnLoadPlayerWeapons(playerid); public OnLoadPlayerWeapons(playerid) { new weaponid, ammo; for(new i, j = cache_get_row_count(g_SQL); i < j; i++) // loop through all the rows that were found { weaponid = cache_get_value_int(i, 0, g_SQL); ammo = cache_get_value_int(i, 1, g_SQL); if(!(0 <= weaponid <= 46)) // check if weapon is valid (should be) { printf("[info] Warning: OnLoadPlayerWeapons - Unknown weaponid '%d'. Skipping.", weaponid); continue; } GivePlayerWeapon(playerid, weaponid, ammo); } return; } Guys, what's is the problem here? And where should I put my SELECT query? before the new weaponid? |
cache_get_value_int(i, 1, ammo);
no?
https://sampwiki.blast.hk/wiki/MySQL/R40...alue_index_int