Jump to content

-|مساعدة|-x


Recommended Posts

كل ما اجي اشتري صاروخ موب نافع يجيلي الخطأ كذا في الدي بق
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
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
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
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 by #_iMr.[E]coo
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...