Results 1 to 2 of 2

Thread: Help, args

  1. #1
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    459
    Thanks
    79
    Thanked 122 Times in 101 Posts

    Help, args

    Code:
    CodeCallback_PlayerCommand(args)
    {
    for(i=0; i<args.size; i++)
    args = fixChatArgs(args);
    }
    script args.
    The first line is needed?
    Code:
     for(i=0; i<args.size; i++)
    If this line is present, the server generates an error "infinite loop" and server lag, and do not work console variables such as: "/+scores" "/kill".
    I do not see what that array to which it belongs, and without this line everything works in perfect order!

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,731
    Thanks
    17
    Thanked 1,082 Times in 683 Posts
    dont use a loop to fix an array when said loop loops over said array.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. The Following User Says Thank You to IzNoGoD For This Useful Post:

    maxdamage99 (17th September 2015)

Posting Permissions

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