Guest User

Untitled

a guest
Jun 25th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.61 KB | None | 0 0
  1. public static string ErrorString(ushort code)
  2.         {
  3.             string[] errors = { "", "Invalid nick or password","Service temporarily unavailable","All other errors","Incorrect nick or password, re-enter",
  4.                                 "Mismatch nick or password, re-enter","Internal client error (bad input to authorizer)","Invalid account","Deleted account",
  5.                                 "Expired account","No access to database","No access to resolver"," Invalid database fields","Bad database status","Bad resolver status",
  6.                                "Internal error","Service temporarily offline","Suspended account","DB send error","DB link error","Reservation map error",
  7.                                 "Reservation link error","The users num connected from this IP has reached the maximum","The users num connected from this IP has reached the maximum (reservation)",
  8.                                "Rate limit exceeded (reservation). Please try to reconnect in a few minutes","User too heavily warned","Reservation timeout","You are using an older version of ICQ. Upgrade required",
  9.                                "You are using an older version of ICQ. Upgrade recommended","Rate limit exceeded. Please try to reconnect in a few minutes","Can't register on the ICQ network. Reconnect in a few minutes",
  10.                                 "Invalid SecurID","Account suspended because of your age (age < 13)"};
  11.             if (code > errors.Length)
  12.             {
  13.                 return "Unknown Error";
  14.             }
  15.             else
  16.             {
  17.                 return errors[code];
  18.             }
  19.         }
Add Comment
Please, Sign In to add comment