Ok, here's my problem, there is osbviously something wrong with how i set up the flag in the following script, but i cant figure out what (I know it's the flag because i ran several tests to check for the problem). It only does this once, even if the player has a lot of the string, acting like i have it set as if, instead of while. changing it to a for loop didnt help either.
NPC Code:
while (strtofloat(#s(clientr.#t(1)))>=1) {
freezeplayer .75;
setcharani ek_mine,;
setstring clientr.#t(1)dust,#v(strtofloat(#s(clientr.#t(1)du st))+1);
setstring clientr.#t(1),#v(strtofloat(#s(clientr.#t(1)))-1);
message #s(clientr.#t(1));
sleep .75;
setcharani idle,;
}
I have tried figuring it out myself, and i only put in part of the script, so i dont expect this thread to be closed/deleted before i solve this prob.