Jump to content

سؤال بسيط


Adham

Recommended Posts

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

سويت كود جاء خطا فيه

ERROR: vMode/Server.lua:351: attempt to perfrom arithmetic on filed '?' (a nil value)

السطر

Table [ source ] = Table [ source ] + 1

if Table [ source ] >= 3 then

	cancelEvent ( )

end

 

Link to comment

or 0

لان بعد ترجمة الكود و انت مو بالجدول

بيكون القيمه nil

وانت كده بتقارن شئ معدوم ب رقم

ف الافضل تسخدم or

وظيفتها تاخد القيمه ال بعدها لو القيمه ال قبلها لا تساوي ترو

و اي قيمه غير فولس و

nil

تعتبر ترو

if ( Table[source] or 0 >= 3 ) then

  • Like 1
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...