• Errors
    10 replies, posted
-snip- Different Question: When you want to add "1" to a variable it's either A) variable ++ B) variable += 1 correct? Or is it variable =+ 1
Im not sure I understand the question but here's what I think your talking about. [lua] local number = 10 number = number + 1 number = number - 1 [/lua]
It is C) value = value + 1
Hmm, I thought you could add 1 to a variable by using variable ++ :S must be a different language I'm confusing myself with
++ and shit is C and is in Pawn too, also C++, prob some others
Okay, then a new question that has to do with vgui: Error: attempt to index global 'vgui' (a nil value) [lua] self.VoteWindow = vgui.Create( "DFrame" ) [/lua] why in hell is this not finding vgui?
[QUOTE=InfernalCookie;34330029]Okay, then a new question that has to do with vgui: Error: attempt to index global 'vgui' (a nil value) self.VoteWindow = vgui.Create( "DFrame" ) why in the hell is this not finding vgui?[/QUOTE] Calling it on the server side of your code?
Well, if it's not in the if ( SERVER ) then end does that mean it's in the client side? (The entire file is a shared file)
[QUOTE=InfernalCookie;34330222]Well, if it's not in the if ( SERVER ) then end does that mean it's in the client side? (The entire file is a shared file)[/QUOTE] That's why i like doing things the old fashioned way. No room for this kind of confusion. I don't think Shared counts as Client. Try throwing it in its own If block. ... Or throw it in a client side file.
Ok that fixed that error -snip- [editline]21st January 2012[/editline] Error: attempt to get length of local 'args' (a nil value) [lua] local args if ( argstr ) then args = self:GetArguments( argstr ) else args = _ end if ( #args == 0 ) then [/lua]
[lua] args = {} [/lua] not [lua] args = _ [/lua]
Sorry, you need to Log In to post a reply to this thread.