Jump to content

إصلاح كود


WTF_

Recommended Posts

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 
 )
 

p_7122ypy91.png

الديبيق الأخير لا تهتمو بيه بس الي فوق 

Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...