Temp Fix for invalid pointer error ,,, map 999999999

Results 1 to 18 of 18
  1. #1
    Apprentice ahmedy02 is offline
    MemberRank
    Mar 2008 Join Date
    7Posts

    Temp Fix for invalid pointer error ,,, map 999999999

    This is a temp fix for this error

    open characters.cpp

    search for
    Code:
    charc.map = MySQL::getInt("characters", IDs[i], "map");
    Replace with

    Code:
            if (MySQL::getInt("characters", IDs[i], "map") != 999999999)
            {
            charc.map = MySQL::getInt("characters", IDs[i], "map");
            }
            else 
            {
            MySQL::setInt("characters", "map", IDs[i], 100000000);        
            charc.map = MySQL::getInt("characters", IDs[i], "map");
            }
    Search for
    Code:
    charc.map = MySQL::getInt("characters", id, "map");
    Replace with :

    Code:
    if (MySQL::getInt("characters", id, "map") != 999999999)
            {
            charc.map = MySQL::getInt("characters", id, "map");
            }
            else 
            {
            MySQL::setInt("characters", "map", id, 100000000);
            charc.map = MySQL::getInt("characters", id, "map");
            }
    i know it's a long code but it work

    done by me

    i dont know if someone did it before me..


  2. #2
    Apprentice kimhansol153 is offline
    MemberRank
    Mar 2008 Join Date
    ulsan city,the republic of koreaLocation
    17Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    nice job!!

    thanks!!!

  3. #3
    Account Upgraded | Title Enabled! ctZ'... is offline
    MemberRank
    Dec 2006 Join Date
    533Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    Did you even had time to test it? :\

    But yeah its working, thanks dude.

  4. #4
    Account Upgraded | Title Enabled! DreadBoy is offline
    MemberRank
    Apr 2008 Join Date
    319Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    it correct the map 99999999
    when going to 4th job map?
    or its just wont bug the dumb user who try it?

  5. #5
    Member fccfcc is offline
    MemberRank
    Apr 2008 Join Date
    98Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    if "map"= 999999999 change "map" to 100000000
    TY it work Fine,

  6. #6
    Apprentice ahmedy02 is offline
    MemberRank
    Mar 2008 Join Date
    7Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    Quote Originally Posted by DreadBoy View Post
    it correct the map 99999999
    when going to 4th job map?
    or its just wont bug the dumb user who try it?


    99999999 isnt 4th job map it's an error map or what ever.
    u get it when u enter some maps in leafre or else

  7. #7
    Account Upgraded | Title Enabled! DreadBoy is offline
    MemberRank
    Apr 2008 Join Date
    319Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    eg the 4th job map -_-
    i think i have a solution....
    we can get the id of the map where in it...
    and check what map we going to warp...
    lets say if we in the map of birks.. and we wanna go to 4th job... we do
    int prevmap=getmapid <this will get prev map we were in
    then teleport in portal
    and
    if(prevmap=<the birks map id>)
    {
    if "map"= 999999999 change "map" to <mapid for 4th job here>
    }
    }
    :P
    then we can do multipy codes and to fix those broking portals

  8. #8
    Apprentice ahmedy02 is offline
    MemberRank
    Mar 2008 Join Date
    7Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    Quote Originally Posted by DreadBoy View Post
    eg the 4th job map -_-
    i think i have a solution....
    we can get the id of the map where in it...
    and check what map we going to warp...
    lets say if we in the map of birks.. and we wanna go to 4th job... we do
    int prevmap=getmapid <this will get prev map we were in
    then teleport in portal
    and
    if(prevmap=<the birks map id>)
    {
    if "map"= 999999999 change "map" to <mapid for 4th job here>
    }
    }
    :P
    then we can do multipy codes and to fix those broking portals
    or u can use the FM codes to all teleports??

  9. #9
    Account Upgraded | Title Enabled! DreadBoy is offline
    MemberRank
    Apr 2008 Join Date
    319Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    i dont want when they try to teleport someone in leafre
    to go to FM...
    i want them to go to the map they should be
    likw 4th job map...
    now i just added it to cap which kinda lame...

  10. #10
    Delta Sparks is offline
    MemberRank
    Apr 2008 Join Date
    2,073Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    thanks you for the released works great ^_^

  11. #11
    Account Upgraded | Title Enabled! npmaple is offline
    MemberRank
    Apr 2008 Join Date
    Israel - a bad placeLocation
    281Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    lol nice idea for now.
    but it can take to henesys...
    i think i gonna make it to FM cuz i use FM npc

  12. #12
    Account Upgraded | Title Enabled! brolly2000 is offline
    MemberRank
    Mar 2006 Join Date
    In a garbage caneLocation
    221Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    a better solution is to make
    UPDATE characters SET map=101000000 WHERE map=999999999

    execute automaticly...Its just i dont know if MySQL has an auto function like SQL2000
    have

  13. #13
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    lol, long time ago i just went to my maps folder and used simple search and replace
    and changed 999999999 to 100000000 xP

  14. #14
    Account Upgraded | Title Enabled! DreadBoy is offline
    MemberRank
    Apr 2008 Join Date
    319Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    Quote Originally Posted by gogodr View Post
    lol, long time ago i just went to my maps folder and used simple search and replace
    and changed 999999999 to 100000000 xP

    not that is a silly way of doing things -_-
    not just u have duplicated heyesys...
    u didnt do nothing.. ur server probly going to crash when someone will go trouw portal... -_-

  15. #15
    I can't leave this place RaptorJesus is offline
    MemberRank
    Apr 2008 Join Date
    1,923Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    100% Working. Thanks :D

  16. #16
    Account Upgraded | Title Enabled! DreadBoy is offline
    MemberRank
    Apr 2008 Join Date
    319Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    hmmm it seems ill better start working on my idea...
    i need some c++ coding power... :/ tough i know c#

  17. #17
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    Quote Originally Posted by DreadBoy View Post
    not that is a silly way of doing things -_-
    not just u have duplicated heyesys...
    u didnt do nothing.. ur server probly going to crash when someone will go trouw portal... -_-
    well I say good silly things because I had my server running 12 hours without any crash today n.n
    and its exactly the same of this code just that I dont emulate it on c++ y just changed it on the xmls

  18. #18
    Member fccfcc is offline
    MemberRank
    Apr 2008 Join Date
    98Posts

    Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

    uhmm new problem - negative maps :S



Advertisement