[Release] Semi-Fix Invalid Pointer
Description:
Everytime you enter map's that are bugged, you get logged off MapleStory with the error "Invalid Pointer" Such as when entering the elevator.
Your character Map ID gets changed to the bug map.
Now you cannot login untill you change it manually in Query Browser SQL.
Fix:
*NOTE*
It's an semi-fix,
What i mean with this is that, you will get warped to bug map when using bugged portal's, however. When starting maple you can just login, and you will be in hennesys again.
This will become handy to public MS server's who get's alot of complain's about this.
What to do:
In MySQLM.CPP UNDER
PHP Code:
void MySQL::deleteRow(char* table, int id){
char query[255];
sprintf_s(query, 255, "delete from %s where ID='%d';", table, id);
mysql_real_query(&maple_db, query, strlen(query));
}
ADD THIS
PHP Code:
void MySQL::PointerError(){
char query[255];
sprintf_s(query, 255, "update Characters set map='100000000' where map='999999999'");
mysql_real_query(&maple_db, query, strlen(query));
}
In Login.CPP UNDER
PHP Code:
LoginPacket::loginConnect(player, username, usersize);
ADD THIS
PHP Code:
MySQL::PointerError();
In MySQLM.h UNDER
PHP Code:
static int getSkills(int id, int skills[200][2]);
Add this
PHP Code:
static void PointerError();
Also add this in Players.cpp on top
PHP Code:
#include "MySQLM.h"
It's a simple code i wrote, Everytime you login, it fixes the map bug.
Untill theres a full fix for it, i advice you to use this.
Greets.
Re: [Release] Semi-Fix Invalid Pointer
Um......
http://forum.ragezone.com/f427/relea...9999-a-389361/
You're copy and paste then re-credit skills are GREAT! // sarcasm
Re: [Release] Semi-Fix Invalid Pointer
lol?
Compare it, it's not the same.
Believe it or not,
i coded it myself without looking at that topic. =.="
Re: [Release] Semi-Fix Invalid Pointer
I know its not coded the same.
Its still the same concept. And its still here. His works just fine
Re: [Release] Semi-Fix Invalid Pointer
This is way more different :D and cleaner! Thanks :)
Re: [Release] Semi-Fix Invalid Pointer
Quote:
Originally Posted by
Sparks
I know its not coded the same.
Its still the same concept. And its still here. His works just fine
So don't say copy and paste = ="
Atleast i'm trying to help MS Source.
Re: [Release] Semi-Fix Invalid Pointer
Quote:
Originally Posted by
benjooo
So don't say copy and paste = ="
Atleast i'm trying to help MS Source.
Ignore him and move on, he is expressing their opinion. Don't be put down by it. Thanks again!
Re: [Release] Semi-Fix Invalid Pointer
I like this one better as well, You can always rely on IF statements
Re: [Release] Semi-Fix Invalid Pointer
Quote:
Originally Posted by
Ruezu
Ignore him and move on, he is expressing their opinion. Don't be put down by it. Thanks again!
Hes not putting me down rofl.
Re: [Release] Semi-Fix Invalid Pointer
i gonna use it
i actually trying to use the post from before...
anyway i gonna change the relog map...
Re: [Release] Semi-Fix Invalid Pointer
Quote:
Originally Posted by
Vintage
I like this one better as well, You can always rely on IF statements
Exactly, at first. i tested it with !fix as gm command. lol ^^
Re: [Release] Semi-Fix Invalid Pointer
added #include "MySQLM.h" , forgot about that.
Re: [Release] Semi-Fix Invalid Pointer
I was only expressing my thoughts, Not trying to put anyone down.
Anyways as much as I hate to say it this one is deffinetivly MUCH cleaner/ better.
Less trouble too.
Re: [Release] Semi-Fix Invalid Pointer
haha sparks got banned o shi
Re: [Release] Semi-Fix Invalid Pointer
This thread is a year and a day old. Read the dates....