I am using UserInfo for Tiny Tank, to save the players stats. But it doesn't save all data. What's my mistake?
Do I have to write m.store() everytime?
public void saveUserData() { if (UserInfo.isStorageAvailable()) { UserInfo m = UserInfo.getMyInfo(); m.setInt(0, Superklasse.mines); m.setInt(1, Superklasse.geld); m.setInt(2, Superklasse.motorF); m.setInt(3, Superklasse.panzerungF); m.setInt(4, Superklasse.nachladenF); m.setInt(5, Superklasse.munitionskapazitaetF); m.setInt(6, Superklasse.abschuesse); m.setInt(7, Superklasse.tode); m.setInt(8, Superklasse.selbstmorde); m.setInt(9, Superklasse.levelFreigeschaltet); if(Superklasse.tigerF==true) m.setString(0, "enabled"); if(Superklasse.tigerF==false) m.setString(0, "disabled"); m.store(); } }