06.10.2016, 15:06
PHP код:
for(new f = 0; f < 47; f ++)//weap_save
{
new weaponstr[128];
format(weaponstr, sizeof(weaponstr), "weapon%d",f);
ini_setInteger(iniFile,weaponstr, 0);
}
for(new s = 0; s < 13; s ++)//weap_save
{
new w,a;
new weaponstr[128];
GetPlayerWeaponData(playerid,s,w,a);
if(w > 0)
{
format(weaponstr, sizeof(weaponstr), "weapon%d",w);
ini_setInteger(iniFile,weaponstr, a);
}
//printf( "slot %d weapon %d ammp %d", s,w,a);
}