Jump to content

يغلق!! مشكلة في التسجيل


Recommended Posts

شباب

في مشكلة في لوحة تسجيل :

المشكلة لما اسجل بحساب موجود مايقولي الحساب مستخدم

addEvent("reg",true) 
addEventHandler("reg",getRootElement(), 
    function (usr,psw) 
        local account = getAccount(usr,psw) 
        if ( account ) then 
            outputChatBox("# This Account is Already Used",source,255,0,0) 
            triggerClientEvent(source,"Erorr",source) 
        else 
            addAccount(usr,psw) 
            outputChatBox("User: " .. usr .. " Pass : " .. psw,source,0,150,255) 
            triggerClientEvent(source,"suc",source) 
            end 
        end 
    end 
) 

Edited by Guest
Link to comment
  
addEvent("reg",true) 
addEventHandler("reg",getRootElement(), 
    function (usr,psw) 
        local account = getAccount(usr,psw) 
        if ( account == false) then 
                   addAccount(usr,psw) 
            outputChatBox("User: " .. usr .. " Pass : " .. psw,source,0,150,255) 
            triggerClientEvent(source,"suc",source) 
  
        else 
            outputChatBox("# This Account is Already Used",source,255,0,0) 
            triggerClientEvent(source,"Erorr",source) 
            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...