Jw8. Posted April 19, 2019 Share Posted April 19, 2019 ابي حد يعدلي الكود ذه على داتا كوينز addEvent( "BuyW", true) addEventHandler( "BuyW", getRootElement(), function ( tPM , gWA, wID ) local PlayerMoney = getPlayerMoney(source) if PlayerMoney >= tPM then giveWeapon (source, wID, gWA ) takePlayerMoney(source, tPM) end end ) Link to comment
[T]|O|[P]George Posted April 19, 2019 Share Posted April 19, 2019 (edited) addEvent( "BuyW", true) addEventHandler( "BuyW", getRootElement(), function ( tPM , gWA, wID ) local PData = getElementData(source,"Your Data Name") if PData >= tPM then giveWeapon (source, wID, gWA ) setElementData (source,"Data Name", PData - tPM) end else outputChatBox("you don't have points",255,255,255,true) end ) حط الداتا حقك ، لو معرفها ~# Edited April 19, 2019 by [T]|O|[P]George Link to comment
KillerX Posted April 19, 2019 Share Posted April 19, 2019 8 minutes ago, [T]|O|[P]George said: addEvent( "BuyW", true) addEventHandler( "BuyW", getRootElement(), function ( tPM , gWA, wID ) local PData = getElementData(source,"Your Data Name") if PData >= tPM then giveWeapon (source, wID, gWA ) setElementData (source,"Data Name", PData - tPM) end else outputChatBox("you don't have points",255,255,255,true) end ) حط الداتا حقك ، لو معرفها ~# راجع كودك عندك خطأ في التحقق Link to comment
+Source|> Posted April 20, 2019 Share Posted April 20, 2019 10 hours ago, KillerX said: راجع كودك عندك خطأ في التحقق addEvent( "BuyW", true) addEventHandler( "BuyW", getRootElement(), function ( tPM , gWA, wID ) local PData = getElementData(source,"Your Data Name") if PData >= tPM then giveWeapon (source, wID, gWA ) setElementData (source,"Data Name", PData - tPM) else outputChatBox("you don't have points",255,255,255,true) end end ) Link to comment
Jw8. Posted April 20, 2019 Author Share Posted April 20, 2019 يغلق خلص حاول احله واخرتها حاولت Link to comment
[T]|O|[P]George Posted April 20, 2019 Share Posted April 20, 2019 16 hours ago, KillerX said: راجع كودك عندك خطأ في التحقق بدلت else كل شوي تنحذف و نسيت اعدلها 1 Link to comment
KillerX Posted April 20, 2019 Share Posted April 20, 2019 7 hours ago, +Source|> said: addEvent( "BuyW", true) addEventHandler( "BuyW", getRootElement(), function ( tPM , gWA, wID ) local PData = getElementData(source,"Your Data Name") if PData >= tPM then giveWeapon (source, wID, gWA ) setElementData (source,"Data Name", PData - tPM) else outputChatBox("you don't have points",255,255,255,true) end end ) خطا دا سيرفر سايد وبالتالي لازم تحط الاعب اللي تظهر لة الرسالة 1 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