Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- format(qCommand, charsmax(qCommand), "INSERT INTO gagi VALUES (null, '%s', '%s', '%d', '%d');", Name(cel), Name(id), flaga, czas);
- SQL_ThreadQuery(gTuple, "InsertHandler", qCommand);
- public InsertHandler(FailState, Handle:Query, Errorcode, Error[], Data[], DataSize)
- {
- if(Errorcode)
- log_amx("Blad w zapytaniu [INSERT]: %d", Errorcode)
- if(FailState == TQUERY_CONNECT_FAILED)
- {
- log_amx("Nie mozna podlaczyc sie do bazy danych.")
- return PLUGIN_CONTINUE
- }
- else if(FailState == TQUERY_QUERY_FAILED)
- {
- log_amx("Zapytanie anulowane [INSERT]")
- return PLUGIN_CONTINUE
- }
- return PLUGIN_CONTINUE
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement