Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Another string array post, weee (https://forums.graalonline.com/forums/showthread.php?t=49331)

Toxin 11-27-2003 07:52 PM

Another string array post, weee
 
deletestring client.messages,sarraylen(client.messages);
does not seem to work, anyone wanna enlighten me on why?

My goal is to get it to delete the most recent part in the array, i've tried tokenscount from tokenize, and such, and varied ways of #v(sarraylen(client.messages)), and such, I know I must be missing something...

adam 11-27-2003 08:08 PM

You have to subtract 1 from the length of the string.

Becouse the length starts from 1.

And the list indicies start from 0.


I think that's why, but you have to subract 1.

Toxin 11-27-2003 08:16 PM

OMG thanks man, lifesaver, it worked, cant believe I didnt think about that, when I was using -1 on all the things above to show the text, haha... I love the forums, before I got this account upgraded, like, I was alone in my problems o.0, now I can reach my full potential with a little assistance here and there when needed :D

adam 11-27-2003 08:23 PM

Glad to be of service. :)

Wary of the forum Wolves though, they stalk youngins who can't spell right, or accidentally say something that isn't perfect in every way shape and form.

Toxin 11-27-2003 08:30 PM

Quote:

Originally posted by adam
Glad to be of service. :)

Wary of the forum Wolves though, they stalk youngins who can't spell right, or accidentally say something that isn't perfect in every way shape and form.

Well, I have a shotgun ready to keep those wolves from my chickens ;)

Lance 11-28-2003 01:00 AM

Quote:

Originally posted by Toxin


Well, I have a shotgun ready to keep those wolves from my chickens ;)

I find it ironic (but, in a way, it makes perfect sense) that Adam contributes much stupidity+negativity to the forums, yet is delusional enough to feel he's correct in warning other people about such things.

osrs 11-28-2003 01:13 AM

Quote:

Originally posted by adam
Glad to be of service. :)

Wary of the forum Wolves though, they stalk youngins who can't spell right, or accidentally say something that isn't perfect in every way shape and form.

The chief of the wolfs has just quit.

Psst..

adam 11-28-2003 03:59 AM

Quote:

Originally posted by osrs


The chief of the wolfs has just quit.

Psst..

His clones will take care of business just fine. :)

MrGannondorf 11-28-2003 09:23 AM

Quote:

Originally posted by Lance


I find it ironic (but, in a way, it makes perfect sense) that Adam contributes much stupidity+negativity to the forums, yet is delusional enough to feel he's correct in warning other people about such things.

*lmao @ the timelyness and irony in lance replying, not just the irony in the reply*


All times are GMT +2. The time now is 08:18 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.