Jump to content

وين الخطا ؟


Recommended Posts

السلام عليكم ورحمه الله و بركاته

سويت كود اذا دخلت يعرف سيريال حقي و يدخلني بحسابي على طول بس ما اشتغل

function ALO() 
    if (getPlayerSerial(player) == "046D2F28A0251C7ED45E14ED36285E42") 
      then 
       logIn ( thePlayer, msh, 2321 ) 
      end 
    end 
 addEventHandler ( "onPlayerJoin", getRootElement(), ALO) 
  
  

وين الخطا ؟ :?:

انا مبتدى في البرمجه

Link to comment

player -- مو معرف !

thePlayer -- مو معرف

+ msh + 2321 مو معرف

~~~~~

تم التعديل #

function ALO( uPlayer, username, password) 
    if (getPlayerSerial(uPlayer) == "046D2F28A0251C7ED45E14ED36285E42") then 
    account = getAccount( username, pasword) 
    if account then 
    logIn ( uPlayer, account, password ) 
    outputChatBox('Access Granted!', source, 255, 255, 0) 
    else 
    outputChatBox('Access Denied!', source, 255, 255, 0) 
      end 
    end 
end 
 addEventHandler ( "onClinetResourceStart", getRootElement(), ALO) 
Edited by Guest
Link to comment

https://wiki.multitheftauto.com/wiki/LogIn

bool logIn ( player thePlayer, account theAccount, string thePassword )

https://wiki.multitheftauto.com/wiki/OnPlayerJoin

The source of this event is the player who joined.

https://wiki.multitheftauto.com/wiki/OutputChatBox

visibleTo: This specifies who the chat is visible to. Any players in this element will see the chat message. See visibility.

r: The amount of red in the color of the text. Default value is 231.

g: The amount of green in the color of the text. Default value is 217.

b: The amount of blue in the color of the text. Default value is 176.

colorCoded: A boolean value determining whether or not '#RRGGBB' tags should be used.

edit :

player -- مو معرف !

thePlayer -- مو معرف

+ msh + 2321 مو معرف

~~~~~

function ALO( uPlayer, username, password) 
    if (getPlayerSerial(uPlayer) == "046D2F28A0251C7ED45E14ED36285E42") then 
    account = getAccount( username, pasword) 
    if account then 
    logIn ( uPlayer, account, password ) 
    outputChatBox('Access Granted!', uPlayer, 255, 255, 0) 
    else 
    outputChatBox('Access Denied!', uPlayer, 255, 255, 0) 
      end 
    end 
end 
 addEventHandler ( "onPlayerJoin", getRootElement(), ALO) 

https://wiki.multitheftauto.com/wiki/OnPlayerJoin

Parameters

No parameters.

Edited by Guest
Link to comment

الكود اللي فوق لاتجربه

# تم تعديل الايفنت

~~~~

function ALO( username, password) 
    if (getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42") then 
    account = getAccount( username, pasword) 
    if account then 
    logIn ( source, account, password ) 
    outputChatBox('Access Granted!', source, 255, 255, 0) 
    else 
    outputChatBox('Access Denied!', source, 255, 255, 0) 
      end 
    end 
end 
 addEventHandler ( "onResourceStart", getRootElement(), ALO) 

Link to comment
function ALO() 
    if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then 
        setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") 
        outputChatBox("You've been automatically logged in", 0, 255, 0) 
    end 
end 
addEventHandler("onPlayerJoin", root, ALO) 

Link to comment
function ALO() 
    if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then 
        setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") 
        outputChatBox("You've been automatically logged in", 0, 255, 0) 
    end 
end 
addEventHandler("onPlayerJoin", root, ALO) 

https://wiki.multitheftauto.com/wiki/OutputChatBox

visibleTo: This specifies who the chat is visible to. Any players in this element will see the chat message. See visibility.

r: The amount of red in the color of the text. Default value is 231.

g: The amount of green in the color of the text. Default value is 217.

b: The amount of blue in the color of the text. Default value is 176.

colorCoded: A boolean value determining whether or not '#RRGGBB' tags should be used.

Link to comment
function ALO() 
    if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then 
        setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") 
        outputChatBox("You've been automatically logged in", 0, 255, 0) 
    end 
end 
addEventHandler("onPlayerJoin", root, ALO) 

وليه التايمر ؟؟

؟؟ getAccount وليه الـ

-- Server :

addEventHandler("onPlayerJoin", root, 
    function () 
        if getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42" then 
            logIn(source, msh, "2321") 
            outputChatBox("You've been automatically logged in", source, 0, 255, 0, true) 
        end 
    end 
) 

Link to comment
    addEventHandler("onPlayerJoin", root, 
        function () 
            if getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42" then 
                logIn(source, msh, "2321") 
                outputChatBox("You've been automatically logged in", source, 0, 255, 0, true) 
            end 
        end 
    ) 

ما اشتغل ``

:arrow::?::arrowleft:

Link to comment
انت حاطها مجهوله مو معرفه خلها كذا

getAccount("msh")

bool logIn ( player thePlayer, account theAccount, string thePassword )

لو كلامك صح بيكون كذا

bool logIn ( player thePlayer, string theAccount, string thePassword )

:roll:

Link to comment
function ALO() 
    if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then 
        setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") 
        outputChatBox("You've been automatically logged in", 0, 255, 0) 
    end 
end 
addEventHandler("onPlayerJoin", root, ALO) 

اشتغل يعطيك العافيه ي تيتي عمر :oops:

مشكورين

رازون

حسوون

تابل

تيتي عمر

شادو

Link to comment
function ALO() 
    if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then 
        setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") 
        outputChatBox("You've been automatically logged in", 0, 255, 0) 
    end 
end 
addEventHandler("onPlayerJoin", root, ALO) 

إستبدل سطر رقم 4 الي بكود تيتي بذآ ,

outputChatBox ( "You've been automatically logged in", source, 0, 255, 0 ) 

لأنه السطر الي بكودهـ كلنت مهوب سيرفر #

Link to comment
function ALO() 
    if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then 
        setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") 
        outputChatBox("You've been automatically logged in", 0, 255, 0) 
    end 
end 
addEventHandler("onPlayerJoin", root, ALO) 

إستبدل سطر رقم 4 الي بكود تيتي بذآ ,

outputChatBox ( "You've been automatically logged in", source, 0, 255, 0 ) 

لأنه السطر الي بكودهـ كلنت مهوب سيرفر #

يعطيك العافيه حبي اسامه على التنبيه ,. :D

Link to comment
function ALO() 
    if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then 
        setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") 
        outputChatBox("You've been automatically logged in", 0, 255, 0) 
    end 
end 
addEventHandler("onPlayerJoin", root, ALO) 

إستبدل سطر رقم 4 الي بكود تيتي بذآ ,

outputChatBox ( "You've been automatically logged in", source, 0, 255, 0 ) 

لأنه السطر الي بكودهـ كلنت مهوب سيرفر #

يعطيك العافيه حبي اسامه على التنبيه ,. :D

حيآكـ الله # :wink:

Link to comment
.. جرب كودي بعد ما تعطيه حقوق آدمن

م اعتقد تسجيل الدخول يبيلهه صلاحيه ادمنيةة ,

التسجيل بحساب جديد هو اللي يبيلهه الـ صلاحيه

^^ مشكوور عالمعلومة

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