![]() |
string problem
When I make a string to equal something and then I reenter the level how come the string will appear twice in the flag menu?
|
This aint josey
Try using a Variable #v
turns it into a number :D |
example
If I made something initilize with a client.variable then reloaded it would repeat flag in the flag menu,like
if (playerenters) setstring client.durbies,0; When I reload it will put client.durbies=0,client.durbies=0 in the flag menu.I don't want to post the script cause its for mining,and people are looking for it. |
what you mean is why does it repeat setting their durbies to 0 after they re-enter the level it will reset the script back to setting the durbies to 0.....spilt that 1 part then use destroy to penilize that seciton.
|
thanx,I fixed it,I made the script a bit better so it doesn't lag :P
|
It was doing that I believe because of a bug. I noticed that about a week ago also, I believe if you redownload it is fixed...
|
I'm also having a problem with strings...
NPC Code: When i deposit, say...1 gralat...it always says the ammount deposited, but never resets the brbank string... And every time i check the balance...no matter what the this.brbanktemp or str(brbank) is...IT"S ALWAYS 00000000000000... :( :( :( :grrr: :grrr: :grrr: (Irritated) Gohan |
Gohan,when reading the value of a string, you have to do this;
#v(strtofloat(#s(string)) not sure why, but it works |
Quote:
|
try thisGohan43331
NPC Code: |
Quote:
|
| All times are GMT +2. The time now is 10:29 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.