Mr.Mostafa Posted June 22, 2018 Share Posted June 22, 2018 سلام عليكم ابي اسوي لو كتبت امر باف 8 يقولي الرقم 1 لو كتبته تاني يقولي الرقم 2 لو كتبته تاني يقولي الرقم 3 الخ محاولتي : المشكلة لما اكتب واكتبه تاني يكون 2 وما يتغير addCommandHandler ( "addnumber", function() local number = 1 outputChatBox("#00ff00* Script test :#ffffff Number is [ ".. number + 1 .." ] !",255,0,0, true) end ) 1 Link to comment
KhaledX Posted June 22, 2018 Share Posted June 22, 2018 local number = 0 addCommandHandler ( "addnumber", function() number = number + 1 outputChatBox("#00ff00* Script test :#ffffff Number is [ ".. number .." ] !",255,0,0, true) end ) Link to comment
Mr.Mostafa Posted June 22, 2018 Author Share Posted June 22, 2018 12 minutes ago, KhaledAlamri said: local number = 0 addCommandHandler ( "addnumber", function() number = number + 1 outputChatBox("#00ff00* Script test :#ffffff Number is [ ".. number .." ] !",255,0,0, true) end ) debug = attempt to perform arithmetic on global ' number ' ( a nill value ) Link to comment
^iiEcoo'x_) Posted June 22, 2018 Share Posted June 22, 2018 . number من local جرب شيل Link to comment
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