Jump to content
  • 0

Process doesn't stop on the script


Turbosjoker

Question

Posted

Hello i am working on multiple choice in the script when i choose 2 or 3 values its doesn't stop on the 2 or 3 value its searching all the values in my script continuously . If im doing something wrong plz anyone give me correct example 

TURBOSJOKER.CS.LDOE.LUA

5 answers to this question

Recommended Posts

Posted
59 minutes ago, maulz said:

I was fix your script

FIXED.LUA

Thats didn't work and u edit like this menu [1] by the way thanks for your reply . And plz give me good example with my script values

Posted
12 hours ago, Turbosjoker said:

when i choose 2 or 3 values its doesn't stop on the 2 or 3 value its searching all the values in my script continuously

That's because you forgot to use goto operator after each block, so it just keeps executing the code.

13 hours ago, Turbosjoker said:

If im doing something wrong

1. Don't use goto, use functions.
2. Don't use "clearResults" function where it is not required and don't forget to use it where it IS required (at the start of each block/function in your case).
3. Read help about "multiChoice" function (https://gameguardian.net/help/classgg.html#a1325b0f7c85d6ad6dd8c6f87ada2e126), because you use it's result incorrectly.

13 hours ago, Turbosjoker said:

plz anyone give me correct example

TURBOSJOKER.CS.LDOE_fixed.lua

Posted
12 hours ago, CmP said:

That's because you forgot to use goto operator after each block, so it just keeps executing the code.

1. Don't use goto, use functions.
2. Don't use "clearResults" function where it is not required and don't forget to use it where it IS required (at the start of each block/function in your case).
3. Read help about "multiChoice" function (https://gameguardian.net/help/classgg.html#a1325b0f7c85d6ad6dd8c6f87ada2e126), because you use it's result incorrectly.

TURBOSJOKER.CS.LDOE_fixed.lua

Thnx bro its working and i understood with the script you fixed and posted here i understood lot on the fixed script☺?? . I understand something how to use multiChoice on script 

Posted

Hello another doubt i want to save one value . But like this results is more than three but the savelist is one how can i right this on the script 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.