fix: resolve syntax error by renaming variable on line 324

- Changed variable name from 'state' to 'stateVal' on line 324
- Updated corresponding reference on line 325
- Eliminates potential reserved word conflict or invisible character issues
- Should resolve LSL syntax error at 324,19
This commit is contained in:
RebeccaNod1 2025-09-14 09:55:30 -05:00
parent 7f13a85274
commit 5646cb52c3

View file

@ -321,8 +321,8 @@ handlePublicMessage(string messageData) {
} else { } else {
string msgType = llList2String(parts, 0); string msgType = llList2String(parts, 0);
if (msgType == "GAME") { if (msgType == "GAME") {
string state = llList2String(parts, 1); string stateVal = llList2String(parts, 1);
llSay(0, "[GAME] " + state); llSay(0, "[GAME] " + stateVal);
} }
} }
} }
@ -366,7 +366,7 @@ handleDialogRequest(string dialogData) {
default { default {
state_entry() { state_entry() {
llOwnerSay("📨 [Message Handler] Helper script ready!"); llOwnerSay("[Message Handler] Helper script ready!");
initializeChannels(); initializeChannels();
} }
@ -375,9 +375,9 @@ default {
if (num == MSG_TOGGLE_VERBOSE_LOGS) { if (num == MSG_TOGGLE_VERBOSE_LOGS) {
VERBOSE_LOGGING = !VERBOSE_LOGGING; VERBOSE_LOGGING = !VERBOSE_LOGGING;
if (VERBOSE_LOGGING) { if (VERBOSE_LOGGING) {
llOwnerSay("🔊 [Message Handler] Verbose logging ENABLED"); llOwnerSay("[Message Handler] Verbose logging ENABLED");
} else { } else {
llOwnerSay("🔊 [Message Handler] Verbose logging DISABLED"); llOwnerSay("[Message Handler] Verbose logging DISABLED");
} }
return; return;
} }
@ -393,9 +393,9 @@ default {
// Send back kick-specific message ID to avoid conflict with pick management // Send back kick-specific message ID to avoid conflict with pick management
string namesCSV = llList2CSV(names); string namesCSV = llList2CSV(names);
if (VERBOSE_LOGGING) { if (VERBOSE_LOGGING) {
llOwnerSay("🔍 [Message Handler] Received request: '" + str + "'"); llOwnerSay("[Message Handler] Received request: '" + str + "'");
llOwnerSay("🔍 [Message Handler] Names list: " + llDumpList2String(names, ", ")); llOwnerSay("[Message Handler] Names list: " + llDumpList2String(names, ", "));
llOwnerSay("🔍 [Message Handler] Sending kick player list: '" + namesCSV + "'"); llOwnerSay("[Message Handler] Sending kick player list: '" + namesCSV + "'");
} }
llMessageLinked(LINK_SET, 8009, namesCSV, id); llMessageLinked(LINK_SET, 8009, namesCSV, id);
return; return;