#Hulk Posted January 5, 2018 Share Posted January 5, 2018 Hello guys, What's wrong ? Error attempt to perform arithmetic on global 'val' (a nil value) line 11 function show(cmd,value,posx,posy) if not (posx) or not (posy) then sx,sy = guiGetScreenSize() posx,posy = sx/2-150,sy/2-50 end show() x,y = posx,posy val = value tam = setTimer(function() logo() end,val*32,0) logo() end Link to comment
Moderators IIYAMA Posted January 6, 2018 Moderators Share Posted January 6, 2018 `value` AND `val` are containing a nil value. They must contain a number value. If `value` contains a number value, it is all fixed. I can't help you any further than that with this code. 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