04.03.2017, 07:18
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?

