Doffy Posted May 12, 2017 Share Posted May 12, 2017 كل ما اجي اشتري صاروخ موب نافع يجيلي الخطأ كذا في الدي بق ERROR: Loading script failed : Deadlyrockets/s.lua:1: unexpected symbol near '?' الاكواد --Client rockets = 0 addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == buyr ) then triggerServerEvent ( "buy:r", localPlayer, localPlayer) if ( rockets <= 25 ) then guiAntiFlood(buyr,1000) end end end ) addEvent("crosss",true) addEventHandler("crosss",root, function() rockets = rockets + 1 end) --Server addEvent("buy:r",true) addEventHandler("buy:r",root, function( aPlayer ) if ( getPlayerMoney(aPlayer) >= 60000 ) then takePlayerMoney(aPlayer, 60000) outputChatBox('#FF0000##00FF00 You bought a deadly rocket succesfully.',source,255,255,255,true) triggerClientEvent("crosss",source) else triggerClientEvent("nomoneyerrorr",source) end end ) Link to comment
iMr.WiFi..! Posted May 12, 2017 Share Posted May 12, 2017 1 hour ago, #Himoo said: كل ما اجي اشتري صاروخ موب نافع يجيلي الخطأ كذا في الدي بق ERROR: Loading script failed : Deadlyrockets/s.lua:1: unexpected symbol near '?' الاكواد --Client rockets = 0 addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == buyr ) then triggerServerEvent ( "buy:r", localPlayer, localPlayer) if ( rockets <= 25 ) then guiAntiFlood(buyr,1000) end end end ) addEvent("crosss",true) addEventHandler("crosss",root, function() rockets = rockets + 1 end) --Server addEvent("buy:r",true) addEventHandler("buy:r",root, function( aPlayer ) if ( getPlayerMoney(aPlayer) >= 60000 ) then takePlayerMoney(aPlayer, 60000) outputChatBox('#FF0000##00FF00 You bought a deadly rocket succesfully.',source,255,255,255,true) triggerClientEvent("crosss",source) else triggerClientEvent("nomoneyerrorr",source) end end ) تأكد انك ضايف السيرفر للميتا واستقبل حدث nomoneyerrorr Link to comment
Doffy Posted May 13, 2017 Author Share Posted May 13, 2017 7 hours ago, #_iMr.[E]coo said: 30 + 32 عندك اخطاء ! انا مستقبل الحدث nomoneyerrorr بس ما حطيته في هذي الاكواد Link to comment
iMr.WiFi..! Posted May 13, 2017 Share Posted May 13, 2017 4 hours ago, #Himoo said: انا مستقبل الحدث nomoneyerrorr بس ما حطيته في هذي الاكواد تأكد انك ضايف السيرفر للميتا !! + عطنا كود اول سطر بسيرفر Link to comment
Doffy Posted May 13, 2017 Author Share Posted May 13, 2017 1 hour ago, iMr.WiFi..! said: تأكد انك ضايف السيرفر للميتا !! + عطنا كود اول سطر بسيرفر هذا هو اول سطر addEvent("buy:r",true) -- ذا addEventHandler("buy:r",root, function( aPlayer ) if ( getPlayerMoney(aPlayer) >= 60000 ) then takePlayerMoney(aPlayer, 60000) outputChatBox('#FF0000##00FF00 You bought a deadly rocket succesfully.',source,255,255,255,true) triggerClientEvent("crosss",source) else triggerClientEvent("nomoneyerrorr",source) end end ) Link to comment
^iiEcoo'x_) Posted May 13, 2017 Share Posted May 13, 2017 (edited) addEvent("buy:r",true) -- ذا addEventHandler("buy:r",root, function( aPlayer ) if ( getPlayerMoney(aPlayer) >= 60000 ) then takePlayerMoney(aPlayer, 60000) outputChatBox("#FF0000##00FF00 You bought a deadly rocket succesfully.",aPlayer,255,255,255,true) triggerClientEvent(aPlayer,"crosss",aPlayer) else triggerClientEvent(aPlayer, "nomoneyerrorr",aPlayer) end end ) متأكد انك حاط الكود ب ملف سيرفر ؟ Edited May 13, 2017 by #_iMr.[E]coo 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