Jump to content

طلب تعديل كود سهل


Recommended Posts

سلام عليكم

ابي اسوي لو كتبت امر باف 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
)

 

  • Like 1
Link to comment
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

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