Results 1 to 2 of 2

Thread: [CoD4] Missing function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Feb 2013
    Location
    Poland
    Posts
    32
    Thanks
    33
    Thanked 27 Times in 8 Posts

    [CoD4] Missing function

    There is a problem with:

    std/math.gsc
    PHP Code:
    intsqrt(input)
    {
        
    output 0;
        while(
    output output input)
            
    output++;
        if(
    maps\mp\_utility::abs(input output output) > maps\mp\_utility::abs(input - (output 1) * (output 1)))
            
    output--;
        return 
    output;

    console_log.mp
    Code:
    Error: 
    ******* script compile error *******
    Error: unknown function: (file 'std/math.gsc', line 69)
     if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
        *
    ************************************
          dvar set cl_paused 0
          dvar set com_errorMessage script compile error
    unknown function
     if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
    (see console for details)
    
    ********************
    ERROR: script compile error
    unknown function
     if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
    (see console for details)
    
    ********************
    If this is proper abs function:

    PHP Code:
    abs (num)
    {
        if (
    num 0)
            
    num*= -1;
            
        return 
    num;

    I always get ping = 0 and IP = 0.
    Last edited by BlancO; 24th September 2013 at 15:14.

Posting Permissions

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