Jump to content

موضوع للجميع انا زهقت قسسم


Recommended Posts

  • Replies 369
  • Created
  • Last Reply

Top Posters In This Topic

function() 
    if ( source ==  GUIEditor_Button[2] ) then 
        triggerServerEvent("login",getLocalPlayer(), guiGetText(user), guiGetText(pass)) 
    end 
end 
) 
addEvent( "onGreeting", true ) 
addEventHandler( "onGreeting", getRootElement(), greetingHandler ) 

يعني ما تعرف تسوي ,

addEvent 
addEventHandler 
guiSetVisible 
showCursor 

صراحه اذا ما تعرف تخلينا نشك انك تسوي ااكواد :o

Link to comment

اوكــ

شف هنا

شف

بس

هنا يقلي

addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى 
addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه 
function ()  
 if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- الخطوه الثالثه 
 guiSetVisible ( GUIEditor_Window[1] ,false ) -- الخطوه الرابعه 
showCursor ( true )  
    end 
end 
) 

هيا قلي خطأ

Link to comment

مافي خطأ ,

+ ما يحتاج تحط القيمه true

اقصد هنآ ,

if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then

لانه اصلا بيتحقق ان النافذه ظاهره ذذ,

if ( guiGetVisible (GUIEditor_Window[1])) then

المهم كلها صح , ذذ

بس لازم يكون الترايقر من السيرفر نفس اسم ,

onSpecialEvent

+ الماوس بيكون ظاهر ذذ,

true = ظاهر ,

false = مخفي ,

Link to comment

كلينت ولا سيرفر؟

الكود حطيته كلينت مشتغل

وسيرفر ماشتغل

حق وش هو اصلا :lol:

addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى 
addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه 
function () 
 if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- الخطوه الثالثه 
 guiSetVisible ( GUIEditor_Window[1] ,false ) -- الخطوه الرابعه 
showCursor ( true ) 
    end 
end 
) 

Link to comment
كلينت ولا سيرفر؟

احمر : كلنت بس

ازرق : كلنت وسيرفر

برتقالي : سيرفر بس

+ تأكد من السيرفر ,

تأكد ان الترايقر موجود ,

اوكـ

الكود ماشتغل :fadein:

اطرح ملف سيرفر ذذ

Link to comment
addEvent("Login",true) 
addEventHandler("Login",root, 
    function(  userName,Password  ) 
        local v = getAccount ( username, Password ) 
            if ( v ~= false ) then 
                logIn ( client, v, Password ) 
        else 
                outputChatBox ( "Wrong username or password!", client, 255, 255, 0 ) 
        end 
end 
) 
  
addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى 
addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه 
function () 
 if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- الخطوه الثالثه 
 guiSetVisible ( GUIEditor_Window[1] ,false ) -- الخطوه الرابعه 
showCursor ( true ) 
    end 
end 
) 

Link to comment

-- Client Side #

addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى 
addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه 
function () 
 if ( guiGetVisible ( windowLogin ) == true ) then -- الخطوه الثالثه 
 guiSetVisible ( windowLogin ,false ) -- الخطوه الرابعه 
showCursor ( true ) 
    end 
end 
) 

-- Server Side #

addEvent("Login",true) 
addEventHandler("Login",root, 
    function(  userName,Password  ) 
        local v = getAccount ( username, Password ) 
            if ( v ~= true ) then 
                logIn ( client, v, Password ) 
                triggerClientEvent("onSpecialEvent",client) 
        else 
                outputChatBox ( "Wrong username or password!", client, 255, 255, 0 ) 
        end 
end 
) 
Link to comment
  • ليش حذفت ردك؟
    انت فهمت وش ابي
    بالظبط
    انا الحين
    لما اكتب اسم بالنافذه
    والرقم
    واسجل LOGIN
    يقلي الباس والرقم خطأ
    وهو صح
    اةنا ابيه اسجل اسمي ورقم حقي
    ويدخلني النافذه
    +
    اذا دخل السيرفر الاششاشه سوده
    يسجل دخوله وبعدين يدخل[/color]
Link to comment

حذفت ردي لاني ما شفت خطأ ذذ ,

+ كان في خطأ بالفنشكشن ,

+ جرب كذآ ,

addEvent("Login",true) 
addEventHandler("Login",root, 
    function(player,userName,Password ) 
        local v = getAccount ( userName, Password ) 
            if ( v ~= true) then 
              if logIn ( player, v, Password ) == true then 
                outputChatBox ( "Login with account : [ " .. userName .. " ]", player, 255, 255, 0 , true ) 
                triggerClientEvent("onSpecialEvent",player) 
          else 
                outputChatBox("Error : In login",player,255,255,255,true) 
             end 
        end 
    end 
) 

Link to comment

[18:30:40] WARNING: 4\server.lua:4: Bad argument @ 'getAccount' [Expected string at argument 1, got boolean]

[18:30:40] WARNING: 4\server.lua:6: Bad argument @ 'logIn' [Expected player at argument 1, got boolean]

[18:30:40] WARNING: 4\server.lua:10: Bad argument @ 'outputChatBox' [Expected element at argument 2, got boolean]

Link to comment

اسمع طيب

شف

addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى 
addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه 
function () 
 if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- الخطوه الثالثه 
 guiSetVisible ( GUIEditor_Window[1] ,false ) -- الخطوه الرابعه 
showCursor ( true ) 
    end 
end 
) 

حق وش ذا

Link to comment
اسمع طيب

شف

addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى 
addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه 
function () 
 if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- الخطوه الثالثه 
 guiSetVisible ( GUIEditor_Window[1] ,false ) -- الخطوه الرابعه 
showCursor ( true ) 
    end 
end 
) 

حق وش ذا

هذا يخفي النافذه اذا سجل الدخول ,

هذا تحطه كلنت ذذ

Link to comment
اسمع طيب

شف

addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى 
addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه 
function () 
 if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- الخطوه الثالثه 
 guiSetVisible ( GUIEditor_Window[1] ,false ) -- الخطوه الرابعه 
showCursor ( true ) 
    end 
end 
) 

حق وش ذا

اولا انت سويت ترايقر من السيرفر الى كلنت ؟

وهذه يجعل النافذة تختفي لين كانت مرئيه

اعتقد انك ناسخنه ذذ

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...