-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default Variables Exception #6013
Comments
Reopening since first issue submitter has gone vanished. |
perhaps this is where the problem might be on place:
if "%region at event-block%" contains "hacking in world pixelnovia":
if event-block is Redstone Comparator:
set {_amount} to placeholder "playerlist_donors_amount" parsed as integer
if {_amount} < 1:
send "&cnon ci sono abbastanza poliziotti online" to player
cancel event
else:
send "&aHacking iniziato...30 secondi all'apertura del cavò!" to player or here variables:
{haraccolto.droga} = false
command /raccogli droga:
trigger:
if {_amount} < 1:
send "&4non ci sono abbastanza poliziotti online!" to player
else:
if player is in region ("serra1"):
if {haraccolto.droga} = false:
set {haraccolto.droga} to true
send "&ahai iniziato a raccogliere..." to player
wait 5 seconds
if player is in region ("serra1"):
wait 5 seconds
if player is in region ("serra1"):
wait 5 seconds
if player is in region ("serra1"):
wait 5 seconds
if player is in region ("serra1"):
wait 5 seconds
if player is in region ("serra1"):
wait 5 seconds
if player is in region ("serra1"):
give stone to player
set {haraccolto.droga} to false
else:
send "&4ti sei allontanato troppo,raccolta annullata :\" to player
set {haraccolto.droga} to false
else:
send "&4ti sei allontanato troppo,raccolta annullata :\" to player
set {haraccolto.droga} to false
else:
send "&4ti sei allontanato troppo,raccolta annullata :\" to player
set {haraccolto.droga} to false
else:
send "&4ti sei allontanato troppo,raccolta annullata :\" to player
set {haraccolto.droga} to false
else:
send "&4ti sei allontanato troppo,raccolta annullata :\" to player
set {haraccolto.droga} to false
else:
send "&4ti sei allontanato troppo,raccolta annullata :\" to player
set {haraccolto.droga} to false
else:
send "&astai già raccogliendo" to player
set {haraccolto.droga} to false
else:
send "&4non puoi raccogliere nulla qui, non è il posto giusto..." to player |
How is the resolution of the problem going? At the moment I can't work with variables on script, which is a big problem for me, and moreover to restart the script I have to restart the whole server. I don't want to be rude but I think that if the problem is not resolved I will be forced to put the previous version of script, hoping that everything goes well there. |
I have been unable to reproduce this error so far. Can you provide the code that is causing this error? |
@arnigel2000 Can you confirm whether you have two |
The 2 variables are in the same script, but it's strange because until now it worked, anyway I'll try to put them in two different scripts. However, the variable I use in the first and second cases "{_amount}" is a placeholder that I got from a plugin named "Playerlists". Maybe that caused problems. |
thanks to your advice skript started working again, probably the problem was the two variables within the same script, thanks for the support. |
Skript/Server Version
Bug Description
I recently updated my version of skript from 2.7.0b to 2.7.0, with the new version every time I run any command to reload the scripts I get this error. Under these conditions I cannot continue to work efficiently on my project, my server runs on paper, and the version is 1.19.4:
Expected Behavior
it should reload the script
Steps to Reproduce
there must be a problem with my script, that's what gives me this error, because I tried to reload a test script and it works. But recently I haven't added any particular functions to the one that gives errors.
However, to replicate it to me, just type /sk reload (file name)
Errors or Screenshots
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: