Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DB_HOSTNAME = "localhost"
- DB_USERNAME = "root"
- DB_PASSWORD = ""
- DB_DATABASE = "BCG"
- DB_CHARSET = "utf8"
- DB = mysql_connect(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE)
- function enterVehicle(player)
- pName = getPlayerName(player)
- checkOrg = mysql_query(DB, "SELECT * FROM bcg WHERE Nick = 'pName' and Org = '[ORG_PUB]'")
- local count = mysql_num_rows(DB)
- if(count > 0) then
- outputChatBox("funcionou", player)
- else
- outputChatBox("Nao funcionou", player)
- end
- end
- addEventHandler ("onVehicleStartEnter", getRootElement(), enterVehicle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement