Quote:
|
Originally Posted by falco10291029
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.
|
It's against the rules to post full code to solve someone's problem, not just post full code...
Quote:
|
A timeout will not work in the script i have
|
I'm sure it would, regardless of how much you'd need to change.
try taking out all of that unnecessary code first then find the problem.
PHP Code:
while (strtofloat(#s(clientr.#t(1)))>=1) {
setstring clientr.#t(1),#v(strtofloat(#s(clientr.#t(1)))-1);
message clientr.#t(1) = #s(clientr.#t(1));
sleep .75;
}
PHP Code:
if (playerchats) {
tokenize #c;
setstring test#t(0),5;
timeout = .1;
}
if (timeout) {
if (strtofloat(#s(test#t(0)))>=1) {
setstring test#t(0),#v(strtofloat(test#t(0))-1);
message test#t(0) = #s(test#t(0));
}
timeout = .1;
}