Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
function onThink(cid, interval, lastExecution)
if (getGlobalStorageValue(20000) == 1) then
doBroadcastMessage ("bigger")
end
if (getGlobalStorageValue(20000) == 0) then
doBroadcastMessage ("smaller")
end
end
If not necessary to check for 0, then make it like this. I'm not sure what the problem is :S
Lua:
function onThink(cid, interval, lastExecution)
if getGlobalStorageValue(20000) < 1 then
doBroadcastMessage ("smaller")
else
doBroadcastMessage ("bigger")
end
end
You might have to make a save for it to change in the db (if that's the problem lulz)
It is like a player, you cannot set a value in the database while the player is already online, if you want it to do what you want it to so, you have to use say a talk action and use setGlobalStorageValue(20000, 1) then the server knows its value
Exactly it will save back to -1, something in the server needs to tell it to go to value 1 he is talking about changing in database manually while server is running