• Check Team Help!
    2 replies, posted
So this is my code [code] if table.HasValue( MayorM, team.GetName(ply:Team()) ) then end [/code] The table contains [code] MayorM = {"Mayor"} [/code] And this is my error [code] [ERROR] addons/mayor_menu/lua/autorun/server/sv_mayormenu.lua:7: attempt to index local 'team' (a boolean value) 1. v - addons/mayor_menu/lua/autorun/server/sv_mayormenu.lua:7 2. unknown - gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua:138 [/code] Been working on this script and this is my only issue right now. Thanks!
You have redefined the global table "team" somewhere earlier in your script to be a true/false value.
[QUOTE=Z0mb1n3;51113154]You have redefined the global table "team" somewhere earlier in your script to be a true/false value.[/QUOTE] Problem solved, thank you so much!
Sorry, you need to Log In to post a reply to this thread.