quixote
July 22nd, 2005, 02:00 PM
if TVpower == "OFF" then TVpower = "ON"
elseif TVpower == "ON" then TVpower = "OFF"
end
I initialize the variable with a seperate script at the start of Girder like this:
TVpower = TVpower or 0
TVpower = "OFF"
I can run it and it works, but sometimes it tells me Script Error: Logic Error. The console says: Attempt to call a string value.
Thanks in advance.
elseif TVpower == "ON" then TVpower = "OFF"
end
I initialize the variable with a seperate script at the start of Girder like this:
TVpower = TVpower or 0
TVpower = "OFF"
I can run it and it works, but sometimes it tells me Script Error: Logic Error. The console says: Attempt to call a string value.
Thanks in advance.