fargot.. Posted June 12, 2019 Share Posted June 12, 2019 السلام عليكم و رحمة الله وبركاته اعطوني معنى ددا الكود WARNING: M6DerbyMission/s.Lua:337: Bad argument @ 'killTimer' [Expected Lua-timer at argument 1, got nil] Link to comment
#BrosS Posted June 12, 2019 Share Posted June 12, 2019 killTimer(المفروض تحط التايمر) اطرح الكود Link to comment
Hakan Posted June 12, 2019 Share Posted June 12, 2019 ويمكن التايمر الي حاطه مو موجود من الاساس لـ هذا السبب استخدم isTimer Link to comment
fargot.. Posted June 12, 2019 Author Share Posted June 12, 2019 1 hour ago, #BrosS said: killTimer(المفروض تحط التايمر) اطرح الكود الكود CrtTable = {}; TableCars = {}; updateText() if isTimer(DerbyCheckTimer) then killTimer(DerbyCheckTimer); end exports.M7ShooterMission:STARTShooterMission() setMarkerColor(CrM,0,255,0,255) elseif #CrtTable == 0 then killTimer ( DerbyCheckTimer ) for i, cars in ipairs(TableCars) do destroyElement ( cars ) end TableCars = {} exports["guimessages"]:outputServer(root, "#3399FF[Derby Mission] #FF0000The Derby Mission Was End !", 0, 255, 255) exports.M7ShooterMission:STARTShooterMission() setMarkerColor(CrM,0,255,0,255) end end end ---System--- Link to comment
#BrosS Posted June 12, 2019 Share Posted June 12, 2019 CrtTable = {}; TableCars = {}; updateText() if isTimer(DerbyCheckTimer) then killTimer(DerbyCheckTimer); end exports.M7ShooterMission:STARTShooterMission() setMarkerColor(CrM,0,255,0,255) elseif #CrtTable == 0 then if isTimer(DerbyCheckTimer) then killTimer ( DerbyCheckTimer ) end for i, cars in ipairs(TableCars) do destroyElement ( cars ) end TableCars = {} exports["guimessages"]:outputServer(root, "#3399FF[Derby Mission] #FF0000The Derby Mission Was End !", 0, 255, 255) exports.M7ShooterMission:STARTShooterMission() setMarkerColor(CrM,0,255,0,255) end end end Link to comment
Hakan Posted June 12, 2019 Share Posted June 12, 2019 (edited) deleted Edited June 12, 2019 by Hakan افاده الاخ @BrosS 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