- Joined
- Jul 17, 2008
- Messages
- 51
- Reaction score
- 4
Interesting.. I'll experiment with this release.
Thanks.
Thanks.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
I'm stuck. Wouldn't mind some help though.
for (int map : chr.getVIPRockMaps()) {
mplew.writeInt(map);
}
public int[] getVIPRockMaps() {
int[] rockmaps = new int[] {999999999, 999999999, 999999999, 999999999, 999999999};
try {
PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement("SELECT mapid FROM trocklocations WHERE cid = ?");
ps.setInt(1, id);
ResultSet rs = ps.executeQuery();
int i = 0;
while (rs.next()) {
rockmaps[i] = (rs.getInt("mapid"));
i++;
}
rs.close();
ps.close();
} catch (SQLException se) {
return null;
}
return rockmaps;
}
Why not release a clean copy of your sql?
int i = 0?
rockmaps[i] = (rs.getInt("mapid"));
that, or a sql error that isn't getting outputted and just returning null.0 ain't null bro... lol
I hate doing this for you, but...
PHP:rockmaps[i] = (rs.getInt("mapid"));
that, or a sql error that isn't getting outputted and just returning null.
tenkirokun said:rockmaps = (rs.getInt("mapid"));
I got that. That is the reference.
What can i do now to solve the NullPointerException?
rockmaps[i] = (rs.getInt("mapid"));
The thing is, I get the error upon character selection. Not when I use a teleport rock. Why would the error be coming from there?
Look dude, if I showed you this, that means you have to go to your database and first confirm that the column "mapid" exist, then check if it's NULL. Same for any other statement which might be null. Why are you trying to open a server prior to learning the basics of coding / debugging?PHP:rockmaps[i] = (rs.getInt("mapid"));
System.out.printlnI went into my database, trocklocations > Mapid exist and it's not NULL.
No sql released will help, just gonna need to slowly fix one.I was using the SQL that was inside the folder of xtras in the download. Do you think that SQL is corrupted much? Should i attempt using a different SQL?
Leechers should learn how to fix released stuffs. otherwise, this is just wrong.
im a leecher what are u goin 2 do about it??
haters gna hate
I was using the SQL that was inside the folder of xtras in the download. Do you think that SQL is corrupted much? Should i attempt using a different SQL?