22.05.2010, 13:35
I have a code of record:
And the problem is that I like AK47 ammo in the weapon 350, and saves me a -1. And here I have a question how to fix it?
Код:
for(new slot; slot < 13; slot++)
{
new weaponid, ammo, WeapString[32], AmmoString[32];
GetPlayerWeaponData(playerid, slot, weaponid, ammo);
format(WeapString, sizeof(WeapString), "Bron%d", slot);
format(AmmoString, sizeof(AmmoString), "Ammo%d", slot);
dini_IntSet(PlayerFile(playerid), WeapString, weaponid);
dini_IntSet(PlayerFile(playerid), AmmoString, ammo);
}

