Home AMX User Forum AMX General Discussion

Error Codes

Hi Everyone,

I am trying to find a Timeline error code and explanation, I am getting an error 3 on TIMELINE_CREATE and I found that there is no info on the forums that I can find.

It got me to thinking, if someone has it, could they list the Timeline error codes and IP error codes and explanations for easier search in the future?

Thanks,

Cameron

Comments

  • AvargasAvargas Posts: 57
    Timeline Returns:
    0 - Successful
    1 - Timeline ID already in use
    2 - Specified array is not an array of LONGs
    3 - Specified length is greeater tan the lenght of the passed array
    4 - Out of memory
    IP Returns:
    // PRINTS IP ERRORS TO DIAGNOSTICS
    DEFINE_FUNCTION CHAR[100] IpError (LONG lERR)
    {
    Switch (lERR)
    {
    Case 0:
    RETURN "";
    Case 2:
    RETURN "'IP ERROR (',ITOA(lERR),'): General Failure (IP_CLIENT_OPEN/IP_SERVER_OPEN)'";
    Case 4:
    RETURN "'IP ERROR (',ITOA(lERR),'): unknown host or DNS error (IP_CLIENT_OPEN)'";
    Case 6:
    RETURN "'IP ERROR (',ITOA(lERR),'): connection refused (IP_CLIENT_OPEN)'";
    Case 7:
    RETURN "'IP ERROR (',ITOA(lERR),'): connection timed out (IP_CLIENT_OPEN)'";
    Case 8:
    RETURN "'IP ERROR (',ITOA(lERR),'): unknown connection error (IP_CLIENT_OPEN)'";
    Case 14:
    RETURN "'IP ERROR (',ITOA(lERR),'): local port already used (IP_CLIENT_OPEN/IP_SERVER_OPEN)'";
    Case 16:
    RETURN "'IP ERROR (',ITOA(lERR),'): too many open sockets (IP_CLIENT_OPEN/IP_SERVER_OPEN)'";
    Case 10:
    RETURN "'IP ERROR (',ITOA(lERR),'): Binding error (IP_SERVER_OPEN)'";
    Case 11:
    RETURN "'IP ERROR (',ITOA(lERR),'): Listening error (IP_SERVER_OPEN)'";
    Case 15:
    RETURN "'IP ERROR (',ITOA(lERR),'): UDP socket already listening (IP_SERVER_OPEN)'";
    Case 9:
    RETURN "'IP ERROR (',ITOA(lERR),'): Already closed (IP_CLIENT_CLOSE/IP_SERVER_CLOSE)'";
    Case 17:
    RETURN "'IP ERROR (',ITOA(lERR),'): Local port not open, can not send string (IP_CLIENT_OPEN)'";
    Default:
    RETURN "'IP ERROR (',ITOA(lERR),'): Unknown'";
    }
    }



Sign In or Register to comment.