Advertisement
Guest User

Untitled

a guest
Feb 26th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. format(qCommand, charsmax(qCommand), "INSERT INTO gagi VALUES (null, '%s', '%s', '%d', '%d');", Name(cel), Name(id), flaga, czas);
  2. SQL_ThreadQuery(gTuple, "InsertHandler", qCommand);
  3.  
  4. public InsertHandler(FailState, Handle:Query, Errorcode, Error[], Data[], DataSize)
  5. {
  6. if(Errorcode)
  7. log_amx("Blad w zapytaniu [INSERT]: %d", Errorcode)
  8.  
  9. if(FailState == TQUERY_CONNECT_FAILED)
  10. {
  11. log_amx("Nie mozna podlaczyc sie do bazy danych.")
  12. return PLUGIN_CONTINUE
  13. }
  14. else if(FailState == TQUERY_QUERY_FAILED)
  15. {
  16. log_amx("Zapytanie anulowane [INSERT]")
  17. return PLUGIN_CONTINUE
  18. }
  19.  
  20. return PLUGIN_CONTINUE
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement