Jump to content

[ مشكله ]xبكود


Recommended Posts

السلام عليكم

addEventHandler ( 'onPlayerLogout' getRootElement(),
Function ( source )
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
Function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

الكود ذا وظيفته انو

يحفظ فلوس الاعب علي 

الاكونت داتا

##################

وش المشكله الي بالكود؟

الدي بق

م يجيب اخطاء

Link to comment
addEventHandler ( "onPlayerLogout" , root ,
  function ( )
    setAccountData ( getPlayerAccount ( source ) , "aSaveMoney" , tonumber ( getPlayerMoney ( source ) ) )
  end
)

addEventHandler ( "onPlayerQuit" , root ,
  function ( )
    setAccountData ( getPlayerAccount ( source ) , "aSaveMoney" , tonumber ( getPlayerMoney ( source ) ) ) 
  end
)

addEventHandler ( "onPlayerLogin" , root ,
  function ( )
    givePlayerMoney ( source , tonumber ( getAccountData ( getPlayerAccount ( source ) , "aSaveMoney" ) ) )
  end
)

 

Edited by #_iMr.[E]coo
Link to comment
14 minutes ago, #_iMr.[E]coo said:

addEventHandler ( "onPlayerLogout" , root ,
  function ( )
    setAccountData ( getPlayerAccount ( source ) , "aSaveMoney" , tonumber ( getPlayerMoney ( source ) ) )
  end
)

addEventHandler ( "onPlayerQuit" , root ,
  function ( )
    setAccountData ( getPlayerAccount ( source ) , "aSaveMoney" , tonumber ( getPlayerMoney ( source ) ) ) 
  end
)

addEventHandler ( "onPlayerLogin" , root ,
  function ( )
    givePlayerMoney ( source , tonumber ( getAccountData ( getPlayerAccount ( source ) , "aSaveMoney" ) ) )
  end
)

 

تحقق باليفينت حق الخروج هل اللاعب مسجل ولا لا

Link to comment
11 minutes ago, MARIY said:

استفسار للعلم ليه حطيتو

 


tonumber

 

؟

يحولها رقم اصلا مالها داعي لانها فلوس اللاعب اصلا مستحيل تجي سترنج

لكن الاخ ايكو الله يهديه ما بتفرق هي اصلا

Link to comment
8 hours ago, MARIY said:

السلام عليكم


addEventHandler ( 'onPlayerLogout' getRootElement(),
Function ( source )
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
Function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

الكود ذا وظيفته انو

يحفظ فلوس الاعب علي 

الاكونت داتا

##################

وش المشكله الي بالكود؟

الدي بق

م يجيب اخطاء

كتابة ال فنكشن عندك غلط,
لازم سمول مب كبيتل,
الخطأ : 
Function

الصح :
function

Link to comment
5 hours ago, MR.StoRm said:

كتابة ال فنكشن عندك غلط,
لازم سمول مب كبيتل,
الخطأ : 
Function

الصح :
function

يعني كده صح ؟


addEventHandler ( 'onPlayerLogout' getRootElement(),
function ()
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

 

Link to comment
1 minute ago, MARIY said:

يعني كده صح ؟


addEventHandler ( 'onPlayerLogout' getRootElement(),
function ()
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

 

يب :)

Link to comment
37 minutes ago, MARIY said:

يعني كده صح ؟


addEventHandler ( 'onPlayerLogout' getRootElement(),
function ()
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

 

ناقصك حدث onPlayerQuit 

Link to comment
45 minutes ago, MARIY said:

يعني كده صح ؟


addEventHandler ( 'onPlayerLogout' getRootElement(),
function ()
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

 

-_-"
ما آنتبهت انت ناسي فاصلة بالسطر الأول
خله كذا :
 

addEventHandler ( 'onPlayerLogout', getRootElement(),
function ()
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

 

Link to comment
28 minutes ago, MR.StoRm said:

-_-"
ما آنتبهت انت ناسي فاصلة بالسطر الأول
خله كذا :
 


addEventHandler ( 'onPlayerLogout', getRootElement(),function ()pmoney = getPlayerMoney ( source )setAccountData ( getPlayerAccount ( source ), "Data", pmoney)end)addEventHandler ( 'onPlayerLogin', getRootElement ( ),function ()local money = getAccountData ( getPlayerAccount ( source ), "Data" )setPlayerMoney ( source, money )end)

 

كيف ناسي فاصلة ؟ لا تزود مشاركات الله ل يهينك

Link to comment
1 hour ago, MARIY said:

يعني كده صح ؟


addEventHandler ( 'onPlayerLogout' getRootElement(),
function ()
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

 

خذ شوف في بعد onPlayerLogout فاصلة ؟؟ 
لا تتفلسف
انت الي تزود مشاركات ,
!

Link to comment
1 minute ago, #_iMr.[E]coo said:

خلص ماشي إنت شاطر ، إنت من كبار المبرمجين ، روح نام

ههههههههههههههههه يالمقهور اكتشفت الغلط ما لقيت وش تتكلم ,
سكران وجاي يتكلم !

Link to comment
Just now, MR.StoRm said:

ههههههههههههههههه يالمقهور اكتشفت الغلط ما لقيت وش تتكلم ,
سكران وجاي يتكلم !

هههههههههههه ، روح جربه وبعدين تعال تفلسف علي ، افصل مكان للناس زيك هو مستشفى المجانين

Link to comment

يا @Deativated
هنا مش الأخ مصري ناسي فاصلة ؟,
 

5 hours ago, MARIY said:

يعني كده صح ؟


addEventHandler ( 'onPlayerLogout' getRootElement(),
function ()
pmoney = getPlayerMoney ( source )
setAccountData ( getPlayerAccount ( source ), "Data", pmoney)
end
)

addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function ()
local money = getAccountData ( getPlayerAccount ( source ), "Data" )
setPlayerMoney ( source, money )
end
)

 

بعد onPlayerLogout !? 

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