• lua code
    11 replies, posted
whats wrong with this line [B]elseif CLIENT then[/B] plz help me and sorry if I posted wrong
write it plain not in bold
Might help if we saw more code and exactly what error you were getting
[QUOTE] if SERVER then Player() umsg.Start("JBSYC",self); local c; if self:Team() == TEAM_PRISONER or self:Team() == TEAM_PRISONER_DEAD then for k,v in pairs(JB.Characters.Prisoner)do if v == self.character then c = k; break; end end umsg.Bool(false); else JB:DebugPrint("Tried to set guard character: Defaultifying"); umsg.Bool(true); c = 1; end umsg.Short(c); umsg.End(); end elseif CLIENT then usermessage.Hook("JBSYC",function(um) local p = LocalPlayer(); if um:ReadBool() then JB:DebugPrint("Tried to set guard character: Defaultifying"); p.character = JB.Characters.Guard[1]; return; end p.character = JB.Characters.Prisoner[um:ReadShort()]; end) end [/QUOTE]
[lua] if SERVER then Player() umsg.Start("JBSYC",self); local c; if self:Team() == TEAM_PRISONER or self:Team() == TEAM_PRISONER_DEAD then for k,v in pairs(JB.Characters.Prisoner)do if v == self.character then c = k; break; end end umsg.Bool(false); JB:DebugPrint("Tried to set guard character: Defaultifying"); umsg.Bool(true); c = 1; end umsg.Short(c); umsg.End(); else usermessage.Hook("JBSYC",function(um) local p = LocalPlayer(); if um:ReadBool() then JB:DebugPrint("Tried to set guard character: Defaultifying"); p.character = JB.Characters.Guard[1]; return; end p.character = JB.Characters.Prisoner[um:ReadShort()]; end) end[/lua] I have fixed the syntax, but if you want more help you are going to have to tell me the exact problem and what you are trying to do
You're ending the original if statement before you do the elseif. May as well just do else, anyway.
he doesn't understand line 2 of you're script why? and do you have a working version of the gamemode?
[QUOTE=frietje2008;40122497]he doesn't understand line 2 of you're script why? and do you have a working version of the gamemode?[/QUOTE] This makes 0 sense I feel like I am missing a lot of information
can I add you on steam for gife you more info about it?
[QUOTE=frietje2008;40122534]can I add you on steam for gife you more info about it?[/QUOTE] No, post it here.
ok what info do you need I got downloaded the last gmod 13 jailbreak releas downloadlink:[url]https://github.com/thedaveef/Gmod_13_JailBreak[/url]
[QUOTE=frietje2008;40122568]ok what info do you need I got downloaded the last gmod 13 jailbreak releas downloadlink:[url]https://github.com/thedaveef/Gmod_13_JailBreak[/url][/QUOTE] You have 0 hope in fixing that with your current knowledge, read this [url]http://www.lua.org/pil/contents.html[/url] My work here is done.
Sorry, you need to Log In to post a reply to this thread.