![]() |
Flag problems?
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: 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. |
Quote:
is there anything using tokenize so #t(1) works? |
Quote:
|
Quote:
|
1. That's not a flag, it's a string.
2. clientr. strings can only be set SERVERSIDE. 3. I do not think a 'while' loop is the best thing to do here. But don't kill me if I'm wrong, but from what I see, other things might be better. |
Quote:
|
Is a player active in the serverside script?
|
Quote:
|
Yeah i tried a timeout loop but it doesnt even set the timeout if it;s serverside for some reason which is crap.
|
Quote:
|
Quote:
Quote:
try taking out all of that unnecessary code first then find the problem. PHP Code:
PHP Code:
|
I just tried using a timeout, it works fine offline meaning it's an online problem.. here's the new code:
PHP Code:
|
Quote:
I use timeouts. Timeouts own all. |
Quote:
|
Quote:
|
it's an npc that turns your gems into gem dust for making spells on EK
|
I see the problem now. It does not set any active player in the timeout.
|
So how would i fix that?
|
When a person says 'crush SOMETHINg', you should set a string with the persons account name, then in the timeout do with(getplayer())
|
o yeah duh, i shoulda thought of that
EDIT: AFter some trial and error, i got it working thanks to vex, and woith thanks to others for suggesting timeouts instead of while. Thank you all |
My ****ing name is KJETIL VALEN! NOT Vex!
|
well excuse me, i usually adress people by their account names
|
Then what is the point of a signature?
|
I never really look at the signatures people have
|
Quote:
|
Quote:
|
I don't. Look at my signature. It does't say "RAT_Boy" there. Use Kjetil!
|
Ok sorry geez you dont see me getting mad if people dont call me chris do you?
|
Yo Vex the Rat Boy, calm down.
Here's my two cents- NPC Code: |
Quote:
|
hey that insult is awesome man, be quiet!
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
(unless you're arguing with a second grader, in which case I pity you) |
Quote:
|
Quote:
Quote:
In other words: Being the author of a statement doesn't mean you can spool gibberish and blame other people if they point out your semantic errors. |
| All times are GMT +2. The time now is 01:42 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.