Jump to content

حدث


Recommended Posts

شو الخطا هنا تابل

function ( Adham ) 
    if guiGetText(GUIEditor.edit[1]) ~= '' then 
    triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) 
    guiSetText (GUIEditor.edit[1], "" ) 
    else 
    guiSetEnabled(GUIEditor.button[1], false) 
     setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
    end, false) 
    addEvent("sendmessage2",true) 
    addEventHandler("sendmessage2",root, function(Name,Text) 
    local hour = getRealTime().hour 
    local minute = getRealTime().minute 
    local second = getRealTime().second+1 
    local gg = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,   "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "")  ..": " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) 
    if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
     outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..guiGetText(GUIEditor.edit[1]).." ",255,255,0,true) 
    end 
    end) 
addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) 
addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) 

Link to comment
function ( Adham ) 
    if guiGetText(GUIEditor.edit[1]) ~= '' then 
    triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) 
    guiSetText (GUIEditor.edit[1], "" ) 
    else 
    guiSetEnabled(GUIEditor.button[1], false) 
     setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
    end, false) 
    addEvent("sendmessage2",true) 
    addEventHandler("sendmessage2",root, function(Name,Text) 
    local hour = getRealTime().hour 
    local minute = getRealTime().minute 
    local second = getRealTime().second+1 
    local gg = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,   "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "")  ..": " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) 
    if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
     outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..guiGetText(GUIEditor.edit[1]).." ",255,255,0,true) 
    end 
    end) 
addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) 
addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) 

وين الفنكشن يلي اسمه

Adham

؟

+

وش سالفة دا ؟

function ( Adham )

Link to comment
function Adham(  ) 
local Text = guiGetText(GUIEditor.edit[1]) 
if ( Text ~= "") and ( Text ~= " ") then 
    triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) 
        guiSetText (GUIEditor.edit[1], "" ) 
            else 
    guiSetEnabled(GUIEditor.button[1], false) 
        setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
end, false ) 
  
addEvent("sendmessage2",true) 
addEventHandler("sendmessage2",root,  
function(Name,Text) 
local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) 
local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1,   "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "")  ..": " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) 
        if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
            outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..guiGetText(GUIEditor.edit[1]).." ",255,255,0,true) 
    end 
end ) 
addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) 
addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) 

Link to comment

function Adham(  ) 
local Text = guiGetText(GUIEditor.edit[1]) 
if ( Text ~= "") and ( Text ~= " ") then 
    triggerServerEvent("support",localPlayer,Text) 
        guiSetText (GUIEditor.edit[1], "" ) 
            else 
    guiSetEnabled(GUIEditor.button[1], false) 
        setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
end, false ) 
  
addEvent("sendmessage2",true) 
addEventHandler("sendmessage2",root,  
function(Name,Text) 
local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) 
local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1,   "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "")  ..": " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) 
        if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
            outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..Text.." ",255,255,0,true) 
        end 
    end 
end ) 
addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) 
addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) 
Link to comment

جرب

function Adham(  ) 
local Text = guiGetText(GUIEditor.edit[1]) 
if ( Text ~= "") and ( Text ~= " ") then 
    triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) 
        guiSetText (GUIEditor.edit[1], "" ) 
            else 
    guiSetEnabled(GUIEditor.button[1], false) 
        setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
end, false ) 
  
  
addEventHandler("sendmessage2",root, 
function Name,Text(  ) 
local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) 
local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1,   "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "")  ..": " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) 
        if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
            outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..guiGetText(GUIEditor.edit[1]).." ",255,255,0,true) 
    end 
end ) 
addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) 
addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) 

Link to comment
function Adham(  ) 
local Text = guiGetText(GUIEditor.edit[1]) 
if ( Text ~= "") and ( Text ~= " ") then 
    triggerServerEvent("support",localPlayer,Text) 
        guiSetText (GUIEditor.edit[1], "" ) 
            else 
    guiSetEnabled(GUIEditor.button[1], false) 
        setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
end, false ) 
  
addEvent("sendmessage2",true) 
addEventHandler("sendmessage2",root,  
function(Name,Text) 
local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) 
local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1,   "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "")  ..": " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) 
        if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
            outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..Text.." ",255,255,0,true) 
        end 
    end 
end ) 
addEventHandler('onClientGUIClick',GUIEditor.button[1],Adham) 
addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1],Adham) 

سوكينج كودك به اشياء غلط

مثل

if ( Text ~= "") and ( Text ~= " ") then

كيف تباه يتحقق من الأتنين هيك المفروض تبقا

if ( Text ~= "") or ( Text ~= " ") then

و

else

شو وضعها

function Adham() 
local Text = guiGetText(GUIEditor.edit[1]) 
if ( Text ~= "") or ( Text ~= " ") then 
    triggerServerEvent("support",localPlayer,Text) 
        guiSetText (GUIEditor.edit[1], "" ) 
    guiSetEnabled(GUIEditor.button[1], false) 
        setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
end 
addEventHandler('onClientGUIClick',GUIEditor.button[1], Adham) 
addEventHandler( "onClientGUIAccepted",GUIEditor.edit[1], Adham) 
  
addEvent("sendmessage2",true) 
addEventHandler("sendmessage2",root,  
function(Name,Text) 
local Text, hour , minute , second = ( guiGetText(GUIEditor.edit[1]) ,( getRealTime().hour ) , ( getRealTime().minute ) , ( getRealTime().second+1 ) 
local Grid = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],Grid, 1,   "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "")  ..": " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],Grid, 1, 0, 255, 0, 255) 
        if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
            outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : "..Text.." ",255,255,0,true) 
        end 
    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...