Hello:
I'm getting this error:
Run-time error
Plugin: Generic_GUI (called from world: Project Twilight)
Function/Sub: OnPluginTelnetSubnegotiation called by Plugin Generic_GUI
Reason: Executing plugin Generic_GUI sub OnPluginTelnetSubnegotiation
[string "Plugin"]:879: attempt to concatenate field 'GEN' (a nil value)
stack traceback:
[string "Plugin"]:879: in function 'draw_score'
[string "Plugin"]:1230: in function <[string "Plugin"]:1169>
Error context in script:
875 : y_offset = y_offset + 22
876 : -- text_line = 'Level '..msdp["LEVEL"]..' '..msdp["RACE"]..' '..msdp["CLAN"]
877 : text_line = msdp["CLAN"]
878 : if msdp["RACE"] == "Vampire" then
879*: outlined_text (colourGold, score_window, msdp["GEN"]..'th '..msdp["CLAN"]..'', 10, 5, y_offset, score_width)
880 : else
881 : outlined_text (colourGold, score_window, msdp["RACE"]..' ('..msdp["CLAN"]..')', 10, 5, y_offset, score_width)
882 : end -- if
883 :
And I can figure out it is saying that GEN is nil, but that cannot be the case. The code is:
MSDPSetNumber( d, eMSDP_GEN, d->character->gen );
and when I look at the pfile, it is saying it's 8th. So, I'm a bit confused. Can anyone help?
I'm getting this error:
Run-time error
Plugin: Generic_GUI (called from world: Project Twilight)
Function/Sub: OnPluginTelnetSubnegotiation called by Plugin Generic_GUI
Reason: Executing plugin Generic_GUI sub OnPluginTelnetSubnegotiation
[string "Plugin"]:879: attempt to concatenate field 'GEN' (a nil value)
stack traceback:
[string "Plugin"]:879: in function 'draw_score'
[string "Plugin"]:1230: in function <[string "Plugin"]:1169>
Error context in script:
875 : y_offset = y_offset + 22
876 : -- text_line = 'Level '..msdp["LEVEL"]..' '..msdp["RACE"]..' '..msdp["CLAN"]
877 : text_line = msdp["CLAN"]
878 : if msdp["RACE"] == "Vampire" then
879*: outlined_text (colourGold, score_window, msdp["GEN"]..'th '..msdp["CLAN"]..'', 10, 5, y_offset, score_width)
880 : else
881 : outlined_text (colourGold, score_window, msdp["RACE"]..' ('..msdp["CLAN"]..')', 10, 5, y_offset, score_width)
882 : end -- if
883 :
And I can figure out it is saying that GEN is nil, but that cannot be the case. The code is:
MSDPSetNumber( d, eMSDP_GEN, d->character->gen );
and when I look at the pfile, it is saying it's 8th. So, I'm a bit confused. Can anyone help?