There is a problem with the radio mod that hasn't been addressed for a while now. Eventually it'll probably be replaced by a new radio system that philxyz is working on.
As for that error, it occurs because the field entity is being referenced as an object when it hasn't been made to equal anything yet (or as Lua says, it is nil). I assume this line here is the culprit:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>...
for i, o in ipairs( radio_sets ) do
if (not o.entity:IsValid()) then
table.remove(radio_sets, i)
elseif (o.Channel == ch) then
...</div>
Whenever a radio is created it should call that Radio_Register() function so that it is added to the radio_sets table. Then that loop simply checks that each radio is valid (calls the entity:IsValid() function) and then removes the entry if it is invalid, or prompts it to recieve the radio data if it is valid.
EDIT: Woo this post removed my Newbie status!


LinkBack URL
About LinkBacks
re;overflow:auto'>



Reply With Quote


Bookmarks