Advertisement
BigETI

file_ex_sniffer.pwn

Aug 28th, 2013
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.97 KB | None | 0 0
  1. #include <a_samp>
  2. #include <file_ex_remote>
  3.  
  4. public OnFileExError(script_id, F_EX_RES::ENUM:result_id, func_name[], File:file_handle, msg[])
  5. {
  6.     switch(result_id)
  7.     {
  8.         case F_EX_RES::OK: printf("OnFileExError(): [ Script ID: %d ] %s(): [ File:%d ] OK \"%s\"", script_id, func_name, _:file_handle, msg);
  9.         case F_EX_RES::INV_FILE_ACCESS: printf("OnFileExError(): [ Script ID: %d ] %s(): [ File:%d ] Invalid file access \"%s\"", script_id, func_name, _:file_handle, msg);
  10.         case F_EX_RES::INV_TEMP_FILE_ACCESS: printf("OnFileExError(): [ Script ID: %d ] %s(): [ File:%d ] Invalid temporary file access \"%s\"", script_id, func_name, _:file_handle, msg);
  11.         case F_EX_RES::INV_FILE_S_PTR: printf("OnFileExError(): [ Script ID: %d ] %s(): [ File:%d ] Invalid file pointer access \"%s\"", script_id, func_name, _:file_handle, msg);
  12.         case F_EX_RES::EOF: printf("OnFileExError(): [ Script ID: %d ] %s(): [ File:%d ] End of file \"%s\"", script_id, func_name, _:file_handle, msg);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement