#DRAGON!FIRE Posted June 20, 2013 Posted June 20, 2013 السسلأم عليكم # # أول شي اعذروني على القطعة بس كنت مششغول # ثاني شي صراحة انا شفت مود حق القائمة السسوداء وفتحه ولقيت toJSON fromJSON # طــبعا يمكن انا غلطان ما ششفتها في المود "... عل عموم قبل ما اشوف المود صراحة ابغى اعرف عنهم # صراحة ما عندي اي فكرة او اي شي عنهم فـ ياريت تشرحولي بالتفصيل كيف استخدمها اش فايتدها ومثال بسسيط عنها عشان افهما اكثر # والسسلأم
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.
#DRAGON!FIRE Posted June 20, 2013 Author Posted June 20, 2013 # عـــأزف ترا شفتها بس ما فهمت مرة ما فهمت غير جافا ةمدري ايش انا ابغى ششرح عنها !!
][sojn][ Posted June 20, 2013 Posted June 20, 2013 toJSON على ما اعتقد لتخزين البيانات وجلبها اما fromJSON لترميز المتغيرات لــtoJSON
MSHOOSH Posted June 20, 2013 Posted June 20, 2013 # عـــأزف ترا شفتها بس ما فهمت مرة ما فهمت غير جافا ةمدري ايش انا ابغى ششرح عنها !! http://www.json.org/json-ar.html الموقع ذا بيفيدك اكثر بالتوفيق ^
#DRAGON!FIRE Posted June 20, 2013 Author Posted June 20, 2013 # مشوش مدري وش اقلك صراحة افتندي مشششكور والموقع روعة وفهمتها يشرحلك بالتفصيل للحين مرة ثانية مشكور ..
MSHOOSH Posted June 20, 2013 Posted June 20, 2013 # مشوش مدري وش اقلك صراحة افتندي مشششكور والموقع روعة وفهمتها يشرحلك بالتفصيل للحين مرة ثانية مشكور .. العفو ي الغلا
iPrestege Posted June 21, 2013 Posted June 21, 2013 تستخدم للتخزين بـ اندكس معين آو آلخ لها استخدامات كثيرة منها هآللآمثلة : addCommandHandler('toJSON', function ( ) aJSON = toJSON ( { [ 'aWeapon' ] = 24 , [ 'aAmmo' ] = 999 ,[ 'aState' ] = true } ) outputChatBox( aJSON ) end ) addCommandHandler('fromJSON', function ( source ) aFromJSON = fromJSON ( aJSON ) giveWeapon ( source,aFromJSON [ 'aWeapon' ],aFromJSON [ 'aAmmo' ],aFromJSON [ 'aState' ] ) end ) -- Or This : addCommandHandler('toJSONTimer', function ( ) aJSONTimer = toJSON ( { [ 'aTimeInterval' ] = 50 , [ 'aTimesToExecute' ] = 0 } ) end ) addCommandHandler('fromJSONTimer', function ( ) aFromJSONTimer = fromJSON ( aJSONTimer ) if aFromJSONTimer then setTimer( outputChatBox,aFromJSONTimer['aTimeInterval'],aFromJSONTimer['aTimesToExecute'],'Hello' ) end end )
#DRAGON!FIRE Posted June 21, 2013 Author Posted June 21, 2013 تستخدم للتخزين بـ اندكس معين آو آلخ لها استخدامات كثيرة منها هآللآمثلة : addCommandHandler('toJSON', function ( ) aJSON = toJSON ( { [ 'aWeapon' ] = 24 , [ 'aAmmo' ] = 999 ,[ 'aState' ] = true } ) outputChatBox( aJSON ) end ) addCommandHandler('fromJSON', function ( source ) aFromJSON = fromJSON ( aJSON ) giveWeapon ( source,aFromJSON [ 'aWeapon' ],aFromJSON [ 'aAmmo' ],aFromJSON [ 'aState' ] ) end ) -- Or This : addCommandHandler('toJSONTimer', function ( ) aJSONTimer = toJSON ( { [ 'aTimeInterval' ] = 50 , [ 'aTimesToExecute' ] = 0 } ) end ) addCommandHandler('fromJSONTimer', function ( ) aFromJSONTimer = fromJSON ( aJSONTimer ) if aFromJSONTimer then setTimer( outputChatBox,aFromJSONTimer['aTimeInterval'],aFromJSONTimer['aTimesToExecute'],'Hello' ) end end ) # مششششششششششكور مرة على ذا المثال || صراحة فهمني اكثر واكثر
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now