FAST_WOLFS Posted January 2, 2016 Share Posted January 2, 2016 I have error in debugscript... -....script2.lua:58: Bad argument @ 'stopResource' [Expected resource-data at argument 1, got nil] Can somebody help me? Thanks greetings. //Server function stoped () stopResource(earth) end addEvent ( "stope", true) addEventHandler ( "stope", getRootElement(), stoped ) Link to comment
Addlibs Posted January 2, 2016 Share Posted January 2, 2016 stopResource(getResourceFromName("earth")) Link to comment
FAST_WOLFS Posted January 2, 2016 Author Share Posted January 2, 2016 stopResource(getResourceFromName("earth")) It works now, thanks Tasty. 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