0 Members and 1 Guest are viewing this topic.
OK, i changed it heres the new codeCode: Lua if ply:GetRole() == ROLE_INNOCENT then local allowed_weapons = { "weapon_zm_carry", "weapon_zm_improvised", "weapon_zm_sledge" { endandCode: Lua if ply:GetRole() == ROLE_TRAITOR then local allowed_weapons = { "weapon_zm_carry", "weapon_zm_improvised" } endbut it keeps saying this for the ROLE_INNOCENT lineCode: Lua[ERROR] addons/wyozitttev/lua/wtevents/juggernut.lua:59: '}' expected (to close '{' at line 55) near '{' 1. unknown - addons/wyozitttev/lua/wtevents/juggernut.lua:0
The error pretty much says what's wrong.Line #6 of your "innocent" code has "{" (opening curly bracket) instead of "}" (closing curly bracket).
you havent told gmod what ply is.