Results 1 to 6 of 6

Thread: GetMyIP() [help]

  1. #1
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts

    GetMyIP() [help]

    Hi,

    There is a problem with:

    PHP Code:
    test()
    {
        
    ip getIP(self);
        
    iprintlnbold(ip);
    }

    getIP(player

        return 
    closer(430player getEntityNumber()); 

    I always get error :
    PHP Code:
    Segmentation fault 
    Thanks a lot

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    What does dmesg say for the crash and what cod are you using?

  3. #3
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Server stop and show crash "Segmentation fault", when I use this script. I use 1.0 version.

  4. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by songo View Post
    Server stop and show crash "Segmentation fault", when I use this script. I use 1.0 version.
    When was your libcod compiled? (post first few lines of the startup log)
    Because it is possible it wasn't supported then yet. (ip support for 1.0 was added around 2 months ago)

    libcod versions are available here:

    Build with https://github.com/M-itch/libcod
    http://znation.nl/libcod/

    Build with https://github.com/kungfooman/libcod
    http://dbg.killtube.org/libcod/libs/
    http://killtube.org/downloads/libcod/
    Last edited by Mitch; 14th January 2014 at 22:31. Reason: added links and when 1.0 support was added

  5. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (15th January 2014),songo (15th January 2014)

  6. #5
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks Mitch for answers! This link working (znation.nl/libcod)

  7. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by songo View Post
    Thanks Mitch for answers! This link working (znation.nl/libcod)
    I think your build version was build without ip and ping support. Good that it works. (in my build you can enable cracked with 'set sv_cracked 1')

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •