Jump to content

تصحيح خطا


Recommended Posts

شباب انا جاني شي وش الخطا هنا

 

 

ابيه لما يدوس انتر برضو يرسل نفس الفانكشن

 

 

  addEvent("sendmessage2",true)
    addEventHandler("sendmessage2",root,
	function  (Name,Text)
	
    local gg = guiGridListAddRow(GUIEditor.gridlist[1])
	local msa = guiRadioButtonGetSelected(GUIEditor.radiobutton[134])
	local msa1 = guiRadioButtonGetSelected(GUIEditor.radiobutton[1])
	local msa12 = guiRadioButtonGetSelected(GUIEditor.radiobutton[3])
	if  ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) and (msa == true )  then
	
    outputChatBox("[Support-System] : ["..Name.."] : "..Text,client,255,255,0,true) 
	 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,"**[ Admin ]  :", false, false)
	 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,Name, false, false)
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 3,tostring(Text), false, false)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2,232,240,14, 255)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 3,232,240,14, 255)
	    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1,232,240,14, 255)
		elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) and (msa1 == true ) then
		    outputChatBox("[Support-System] : ["..Name.."] : "..Text,255,255,0,true) 

		guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,"**[ Player ]  :", false, false)

    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,Name, false, false)
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 3,tostring(Text), false, false)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2, 255, 0, 0, 255)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 3, 255, 0, 0, 255)
		    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1,255, 0, 0, 255)
		elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) and (msa12 == true ) then
				    outputChatBox("[Support-System] : ["..Name.."] : "..Text,client,255,255,0,true) 

		 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,"**[ Support ]  :", false, false)
	 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,Name, false, false)
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 3,tostring(Text), false, false)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2,35, 254, 0, 255)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 3,35, 254, 0, 255)
	    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1,35, 254, 0, 255)
		
	elseif (guiRadioButtonGetSelected(GUIEditor.radiobutton[1]) == true)then
	
	guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,"**[ Player ]  :", false, false)

    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,Name, false, false)
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 3,tostring(Text), false, false)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2, 255, 0, 0, 255)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 3, 255, 0, 0, 255)
		    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1,255, 0, 0, 255)

	elseif(guiRadioButtonGetSelected(GUIEditor.radiobutton[3]) == true) then
	

		 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,"**[ Support ]  :", false, false)
	 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,Name, false, false)
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 3,tostring(Text), false, false)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2,35, 254, 0, 255)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 3,35, 254, 0, 255)
	    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1,35, 254, 0, 255)
		
		
		elseif(guiRadioButtonGetSelected(GUIEditor.radiobutton[134]) == true)    then
	

		 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,"**[ Admin ]  :", false, false)
	 guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,Name, false, false)
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 3,tostring(Text), false, false)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2,232,240,14, 255)
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 3,232,240,14, 255)
	    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1,232,240,14, 255)
		
elseif	(guiRadioButtonGetSelected(GUIEditor.radiobutton[134]) == false)	and (guiRadioButtonGetSelected(GUIEditor.radiobutton[3]) == false) and  (guiRadioButtonGetSelected(GUIEditor.radiobutton[134]) == false) then
outputChatBox("الرجاء حدد اذا كنت لاعبا ام ماذا",client,255,255,255)
		
    
	end
	
    end)

بس الاكواد مش زابطه

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...