Results 1 to 10 of 33

Thread: [advanced] Find player's country-of-origin

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #28
    Private Whiskas's Avatar
    Join Date
    Jan 2015
    Posts
    84
    Thanks
    69
    Thanked 20 Times in 17 Posts
    Quote Originally Posted by suck000 View Post
    And how can i fix it sir ?
    If you copied my code, at least you could read it. It's not that ugly (hopefully).

    PHP Code:
    getPlayerById(number)
    {
        
    number Int(number);
        
    players getentarray("player""classname");
        for(
    0players.sizei++) 
        {
            if(
    players[igetEntityNumber() == number)
                return 
    players[i];
        }
        return 
    undefined;

    Read it again (if you did it) and spot the part you missed.

  2. The Following User Says Thank You to Whiskas For This Useful Post:

    suck000 (7th July 2016)

Posting Permissions

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