new Weapons = 0, Ammo; for( new i = 0; i < 13; i ++ ){ GetPlayerWeaponData( playerid, i, Weapons, Ammo ); if(Weapons == GetPlayerWeapon(playerid)) { printf("The slot is: %d", i); }}