11.08.2015, 10:06
Hello!,
So i am trying to retrieve data from my MySQL table and it seems to be retrieving data twice.
There is only 1 row of data and the Ammo amount is 100. However upon login it gives 200. It keepts doubling the ammo value. I tried debugging and this was the result.
Help would be appreciated!
So i am trying to retrieve data from my MySQL table and it seems to be retrieving data twice.
pawn Код:
for(new i, k = cache_get_row_count(Connection); i < k; i++)
{
Weapon_ID = cache_get_row_int(i, 0, Connection);
Ammo = cache_get_row_int(i, 1, Connection);
printf("Ammo: %d",Ammo);
}
Код:
Ammo: 100 Ammo: 100