No, I mean that my outside-gmod script apparently cannot be longer than 60 lines. I shortened it to less then 60 lines and then it worked.
No, I mean that my outside-gmod script apparently cannot be longer than 60 lines. I shortened it to less then 60 lines and then it worked.
Originally Posted by LuaPineapple
I wasn't having the error because I saved in-game... When I saved in-game after just changing some value it just truncated the script to 60 lines and the script still "worked" (it just didn't do anything, since its outputs were not given a value anymore).
When I appended to my file again afterwards outside the game the error came up. It also seems to only come up if there is a conditional spanning over the 60 line limit... I didn't have any trouble before I started using the conditional.
Originally Posted by LuaPineapple
As I understand it, each line is stored in a cvar, of which there are 60, which gives the hard limit of lines per script.
Exactly as fatal said, anything over 60 lines will dissappear because there are no CVARs allocated for those lines. The reason it works when you don't have a conditional span over the last line is because anything else won't cause an error, but will simply just dissappear instead.
Ok, thanks, I'll have to keep that in mind.
Originally Posted by LuaPineapple
Could anyone please explain to me the use of the concommand function? I've used it to do a few things but i can't for the life of me work out how to get it to say a variable. Please could someone make me an example that works? because i've tried everything i can think of.
BTW, Awesome chip, i don't think i'd ever be able to use the old chips at all after this![]()
concommand('say $Var') should say whatever the variable Var is.
Bookmarks