Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: best player map

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    ok work thanks
    PHP Code:
    array_sort_by_exp(array)
    {
        
    temp = array;

        for (
    0temp.size 1i++)
        {
            for (
    1temp.sizej++)
            {
                if (
    temp].sexp temp].sexp)
                {
                    var = 
    temp];
                    
    temp] = temp];
                    
    temp] = var;
                }
            }
        }

        return 
    temp;


  2. #2
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    PLEASE CLOSE TOPIC

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    No need to close
    timescale 0.01

  4. #4
    Private
    Join Date
    Jun 2013
    Posts
    26
    Thanks
    20
    Thanked 3 Times in 1 Post
    And how to save / load the stats?

  5. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Just search this forum for "openfile"
    timescale 0.01

  6. #6
    Private
    Join Date
    Jun 2013
    Posts
    26
    Thanks
    20
    Thanked 3 Times in 1 Post
    Ye, the openfile, i know for it but it don't work... How to save the PLACES 1, 2, 3. So When the map ends to save the places, and on next map to load them, and to check if the places change and save it again...

  7. #7
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    You just load in player_connect() and save on player_disconnect() and endMap().

    When you say something not worked, what did you actually tried?
    timescale 0.01

  8. #8
    Private
    Join Date
    Jun 2013
    Posts
    26
    Thanks
    20
    Thanked 3 Times in 1 Post
    I tried the same, i just get this error: uninitialised variable 'places'

  9. #9
    Private
    Join Date
    Jul 2012
    Posts
    76
    Thanks
    9
    Thanked 56 Times in 38 Posts
    Quote Originally Posted by IzNoGoD View Post
    If you need the community for every little script you are writing, you are better off not writing the scripts.
    Couldn't have said it better myself.
    I know what the script is provided to do. But seriously, the way it's scripted does not make any sense at all.
    No one becomes perfect over night. I remember the good old times. I'd never debug, but I would get it working anyway. I did not know about 'developer 1', no, the only errors I got were 'Unknown Function @46436'. Sometimes just a semicolon was missing and after hours of searching I found it. So guys, I am telling you, THAT made me good at that shite. And malyczolg, you are complaining about an indefined var. Come on, you're better than that.

Posting Permissions

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