WTF_ Posted December 13, 2017 Share Posted December 13, 2017 executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `bank` (accname, money) ' ) local bankmarker = createMarker ( 362.07764, 173.50325, 1007.38281,"cylinder", 1.5, 255, 0, 0 ) setElementInterior ( bankmarker , 3 ) addEventHandler( "onMarkerHit" , bankmarker , function ( hitElement ) local checkMoney = executeSQLQuery( ' SELECT * FROM `bank` WHERE accname = ? ', getPlayerAccount(hitElement) ) local moneyPlayer = (getPlayerMoney ( hitElement ) local nameplayer = getPlayerName ( hitElement ) if not ( type ( checkMoney ) == 'table' and #checkMoney == 0 or not checkMoney ) then if moneyPlayer and nameplayer then local x = checkMoney[1]['bank'] triggerClientEvent (hitElement, "hit" , moneyPlayer ,nameplayer , x) end else triggerClientEvent (hitElement, "hit2" ,moneyPlayer,nameplayer) end end ) الديبيق الأخير لا تهتمو بيه بس الي فوق Link to comment
H25 Posted December 13, 2017 Share Posted December 13, 2017 الارقمنت الثالث في triggerClientEvent لازم يكون المنت راجع صفحة الفنكشن في الويكي يعني يكون بهذي الطريقة triggerClientEvent (hitElement, "hit" , hitElement, moneyPlayer ,nameplayer , x) Link to comment
#Mr.Pop Posted December 13, 2017 Share Posted December 13, 2017 triggerClientEvent (hitElement, "hit" ,hitElement , moneyPlayer ,nameplayer , x) Link to comment
WTF_ Posted December 13, 2017 Author Share Posted December 13, 2017 4 hours ago, Husain-[25]~ said: الارقمنت الثالث في triggerClientEvent لازم يكون المنت راجع صفحة الفنكشن في الويكي يعني يكون بهذي الطريقة triggerClientEvent (hitElement, "hit" , hitElement, moneyPlayer ,nameplayer , x) شكرا لك اخوي نسيت 4 hours ago, Husain-[25]~ said: الارقمنت الثالث في triggerClientEvent لازم يكون المنت راجع صفحة الفنكشن في الويكي يعني يكون بهذي الطريقة triggerClientEvent (hitElement, "hit" , hitElement, moneyPlayer ,nameplayer , x) نسيت :') Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now