A7M8D Posted July 16, 2017 Share Posted July 16, 2017 السلام عليكم و رحمة الله وبركاتة في كود جنني انه في اخطاء في الدي بق لاكن المود شغال 100% مش عارف في اية اول خطا addEvent("putData",true) addEventHandler("putData",root, function (Name,Price) guiSetText(Label1,"[ "..Name.." ]") guiSetText(Label2,"[ "..Price.."$ ]") end ) السطر guiSetText(StockPriceLabel,"[ "..Price.."$ ]") الخطا الثاني setTimer( function() for index, thePlayer in ipairs(getElementsByType("player"))do local Acc = getPlayerAccount ( thePlayer ) if ( Acc ) and not isGuestAccount ( Acc ) then local Price = getAccountData ( Acc, "DataName" ,Price) setAccountData(Acc,"DataName",tonumber(Price)-1) triggerClientEvent(thePlayer,"PutNewData",thePlayer,Price) end end end, 3000, 0) جميع الاكواد سليمة و تعمل بنجاح لاكن اكواد الدي بق تعمل لاق [04:02:28] ERROR: Script\s.lua:88: attempt to perform arithmetic on a nil value Link to comment
Abdul KariM Posted July 16, 2017 Share Posted July 16, 2017 (edited) الخطأ الاول يقولك القيمة بولين يعني فولس او ترو مايصير تحطها بدون سترنق باليبل الخطأ الثاني بدل السطر هذا بالي عندك local Price = getAccountData ( Acc, "DataName" ) or 0 Edited July 16, 2017 by Abdul KariM 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