Advertisement
mrdrifter

Untitled

Feb 11th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. //Testing sms api ServerProject.pl
  2. /*
  3. Test result:
  4.  
  5. Filterscript 'bare.amx' loaded.
  6. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  7. Nie kod jest nie poprawny :P
  8. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  9. Nie kod jest nie poprawny :P
  10. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  11. Nie kod jest nie poprawny :P
  12. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  13. Nie kod jest nie poprawny :P
  14. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  15. Nie kod jest nie poprawny :P
  16. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  17. Nie kod jest nie poprawny :P
  18. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  19. Nie kod jest nie poprawny :P
  20. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  21. Nie kod jest nie poprawny :P
  22. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  23. Nie kod jest nie poprawny :P
  24. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  25. Nie kod jest nie poprawny :P
  26. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  27. Nie kod jest nie poprawny :P
  28. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  29. Nie kod jest nie poprawny :P
  30. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  31. Nie kod jest nie poprawny :P
  32. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  33. Nie kod jest nie poprawny :P
  34. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  35. Nie kod jest nie poprawny :P
  36. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  37. Nie kod jest nie poprawny :P
  38. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  39. Nie kod jest nie poprawny :P
  40. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  41. Nie kod jest nie poprawny :P
  42. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  43. Nie kod jest nie poprawny :P
  44. index: 255, response_code: 200, data[{"status":"fail","error":"wrong_key"}].
  45. Nie kod jest nie poprawny :P
  46.  
  47.  
  48. */
  49. #include <a_samp>
  50. #include <a_http>
  51.  
  52. public OnFilterScriptInit()
  53. {
  54. for(new i;i<20;i++)
  55. HTTP(0xFF, HTTP_GET, "admin.serverproject.pl/api/smsapi.php?key=xxxx&amount=5&code=55", "", "checkSMSAPI");
  56. return 1;
  57. }
  58.  
  59.  
  60. forward checkSMSAPI(index, response_code, data[]);
  61. public checkSMSAPI(index, response_code, data[])
  62. {
  63. printf("index: %d, response_code: %d, data[%s].", index, response_code, data);
  64.  
  65. new bool:succes = strfind(data, "ok") == -1 ? false:true;
  66.  
  67. print(succes == true ? ("Kod jest poprawny"):("Nie kod jest nie poprawny :P"));
  68. return 1;
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement