• GM:KeyPress help
    3 replies, posted
Hey, can anybody tell me whats wrong with this? [lua] function GM:KeyPress(ply, key) if key == IN_RELOAD and ply:GetNWBool("IsInBirdEye") == false then ply:SetNWBool("IsInBirdEye", true) ply:SetNWVector("CameraPos", ply:GetPos() + <span class="highlight">Vector</span>(0,0,500)) elseif key == IN_RELOAD and ply:GetNWBool("IsInBirdEye") == true then ply:SetNWBool("IsInBirdEye", false) end end [/lua] unexpected symbol near '<' thats on line 4 here. [editline]EDIT:[/editline] Nvm, i found a fix [lua] function GM:KeyPress(ply, key) if key == IN_RELOAD and ply:GetNWBool("IsInBirdEye") == false then ply:SetNWBool("IsInBirdEye", true) ply:SetNWVector("CameraPos", ply:GetPos() + Vector(0,0,500)) elseif key == IN_RELOAD and ply:GetNWBool("IsInBirdEye") == true then ply:SetNWBool("IsInBirdEye", false) end end [/lua]
...Really? You didn't see the HTML?
<span class="highlight"> is what happens when code contains a keyword you searched for.
[QUOTE=Crazy Quebec;17989843]<span class="highlight"> is what happens when code contains a keyword you searched for.[/QUOTE] Therefore that needs to be fixed.
Sorry, you need to Log In to post a reply to this thread.