you are not removing old event handlers when adding new ones.
you should tell what exactly is not working, what is happening, if there is any error, etc.
I think guy with 230 posts should know that..
oh that way..
then pass only water element returned by createWater function to getWaterLevel, and use setWaterLevel(waterElement, value).
and one more thing-there was flood resource on community-why wouldn't you download and use it? our just take a peek into source?
syntax is the first thing you should know while scripting - if you got syntax error you should fix this with your eyes shut.. some programming forums (various languages) are just trashing posts with questions about syntax errors - because this is ridiculous to ask such questions!
and as i said - no need to create any water element!!
i told you - its impossible to have web download for only one resource.
and id you are hosting server on serverffs you dont need web download - their upload speed is enough i think.
just disable web download, thats all
read wiki more carefully if you are copying examples from it ...
you dont need to create any water element if you want to modify "standard water" level.
just pass one argument to setWaterLevel and dont pass any arguments to getWaterLevel
And how about this?
https://wiki.multitheftauto.com/wiki/Debugging
Saw this before? I'm pretty sure you can spot an error easly with debugging.
Note: To debug NOT means to enter "debugscript 3" in console - it's something more (generally it is watching actions and variables with outputDebugString)
https://wiki.multitheftauto.com/wiki/Server_Manual
and dont act like this "plz !!!!111 oneoneone" - you are lowering your chance for somebody to reply..
looks like there is another server on 22005 - maybe you have another server running in background? or mta server didnt close itself properly.
try restarting pc
and try changing port 22005 to another