adri1

Untitled

Jul 24th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. mysql_format
  2. (
  3. srp_db, QUERY_BUFFER, sizeof QUERY_BUFFER,
  4. "\
  5. INSERT INTO player\
  6. (\
  7. name,\
  8. last_connection,\
  9. last_connection_timestamp,\
  10. level,\
  11. rep,\
  12. connected,\
  13. playerid,\
  14. time_for_rep,\
  15. skin,\
  16. cash,\
  17. pos_x,\
  18. pos_y,\
  19. pos_z,\
  20. angle,\
  21. state,\
  22. fight_style,\
  23. health,\
  24. hungry,\
  25. thirst,\
  26. config_sound,\
  27. config_audio,\
  28. config_time,\
  29. config_hud,\
  30. config_admin\
  31. ) \
  32. VALUES\
  33. (\
  34. '%e', '%e', %d, %d, %d, %d, %d, %d, %d, %d, %f, %f, %f, %f, %d, %d, %f, %f, %f, %d, %d, %d, %d, %d
  35. );\
  36. ",
  37. PI[playerid][pi_NAME], PI[playerid][pi_LAST_CONNECTION], PI[playerid][pi_LAST_CONNECTION_TIMESTAMP],
  38. PI[playerid][pi_LEVEL], PI[playerid][pi_REP], PI[playerid][pi_CONNECTED], PI[playerid][pi_PLAYERID],
  39. PI[playerid][pi_TIME_FOR_REP], PI[playerid][pi_SKIN], PI[playerid][pi_CASH], PI[playerid][pi_POS_X],
  40. PI[playerid][pi_POS_Y], PI[playerid][pi_POS_Z], PI[playerid][pi_ANGLE], PI[playerid][pi_STATE],
  41. PI[playerid][pi_FIGHT_STYLE], PI[playerid][pi_HEALTH], PI[playerid][pi_HUNGRY], PI[playerid][pi_THIRST],
  42. PI[playerid][pi_CONFIG_SOUNDS], PI[playerid][pi_CONFIG_AUDIO], PI[playerid][pi_CONFIG_TIME],
  43. PI[playerid][pi_CONFIG_HUD], PI[playerid][pi_CONFIG_ADMIN]
  44. );
  45. print(QUERY_BUFFER);
  46. mysql_pquery(srp_db, QUERY_BUFFER, using inline OnPlayerInserted);
Advertisement
Add Comment
Please, Sign In to add comment