Advertisement
Guest User

Untitled

a guest
Feb 17th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. DB_HOSTNAME = "localhost"
  2. DB_USERNAME = "root"
  3. DB_PASSWORD = ""
  4. DB_DATABASE = "BCG"
  5. DB_CHARSET = "utf8"
  6. DB = mysql_connect(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE)
  7. function enterVehicle(player)
  8. pName = getPlayerName(player)
  9. checkOrg = mysql_query(DB, "SELECT * FROM bcg WHERE Nick = 'pName' and Org = '[ORG_PUB]'")
  10. local count = mysql_num_rows(DB)
  11. if(count > 0) then
  12. outputChatBox("funcionou", player)
  13. else
  14. outputChatBox("Nao funcionou", player)
  15. end
  16. end
  17. addEventHandler ("onVehicleStartEnter", getRootElement(), enterVehicle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement