• GM:PlayerNoclip failing
    4 replies, posted
[code] function GM:PlayerNoClip( ply ) if(ply:IsAdmin()) then return true else ply:PrintMessage( HUD_PRINTTALK, "You must be Admin or above to noclip!" ) return false end [/code] How in the rustybullethole is this not working? :3 ------------------------------------------------------ Help would be appreciated
You are missing an 'end' after 'return false'.
You forgot an "end". Here's a rewritten version. [lua]function GM:PlayerNoClip( ply ) if ( !ply:IsAdmin() ) then ply:PrintMessage( HUD_PRINTTALK, "You must be admin to noclip!" ) return false end return true end[/lua] [editline]10:52PM[/editline] DAMMIT. Ninja'd. :ninja: That's okay, because I provided code. :smile:
Oh wow, I don't believe I forgot to end it :3 you have been boxified for your efforts. Thanks.
Thank [i]you[/i]. [IMG]http://img.photobucket.com/albums/v308/flaming-gummy-bear/heartbox.png[/IMG]
Sorry, you need to Log In to post a reply to this thread.