Starter_But Advanced Cheater Reputation: 0
Joined: 26 Oct 2021 Posts: 53
|
Posted: Wed Oct 27, 2021 4:49 am Post subject: error in script |
|
|
he writes to me about an error
Error:[string "function UDF1_CEButton1Click(sender)
..."]:18: attempt to compare string with number
my code
function UDF1_CEButton1Click(sender)
local Z = ("09A3E318")
repeat
writeInteger("09A3E318",35128361)
writeInteger("09A3E318",39453468)
sleep (50)
writeInteger("09A3E318",46006982)
sleep (50)
writeInteger("09A3E318",43319922)
sleep (50)
writeInteger("09A3E318",36962807)
sleep (50)
writeInteger("09A3E318",41288068)
sleep (50)
writeInteger("09A3E318",36111000)
sleep (50)
writeInteger("09A3E318",35128361)
until Z <= 10
end
how do I fix it?
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1053 Location: 0x90
|
Posted: Wed Oct 27, 2021 5:24 am Post subject: |
|
|
Firstly, use code tags if you're posting code. Secondly, your variable Z is a string ("09A3E318") which you are comparing against an integer (until Z <= 10). You will want to read the value held at the address using the functions I mentioned in your other thread.
|
|