Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Clear string list. (https://forums.graalonline.com/forums/showthread.php?t=58149)

JkWhoSaysNi 03-18-2005 10:51 PM

Clear string list.
 
How can I clear a string list?

I tried this... but it doesnt work...

NPC Code:

for (count=0;count=sarraylen(name);count++) {
deletestring name,#v(count);
}



I also tried with #s. It doesnt work either.

Evil_Trunks 03-18-2005 11:03 PM

just unset the string and it goes away

setstring string,;

a string list is no different than a normal string, just formatted in a special way

JkWhoSaysNi 03-18-2005 11:57 PM

thanks.

maximus_asinus 03-19-2005 04:58 AM

but using setstring is ugly.
:frown:

Skyld 03-19-2005 11:24 AM

Quote:

Originally Posted by maximus_asinus
but using setstring is ugly.
:frown:

What.

Luigi203 03-19-2005 03:56 PM

Quote:

Originally Posted by Skyld
What.

Maximus obviously did not think before speaking, perhaps the words jumped out of his mouth.

Skyld 03-19-2005 08:24 PM

Quote:

Originally Posted by Luigi203
Maximus obviously did not think before speaking, perhaps the words jumped out of his mouth.

Perhaps Maximus would care to explain to us how it is 'ugly'?

maximus_asinus 03-19-2005 08:36 PM

I meant that when I code, I dislike using setstring, and I only use it when I have to. If I couldn't get deletestring to work, I'd restructure my script so it did work. I don't know what it is about that command but it makes me angry.

Evil_Trunks 03-19-2005 09:48 PM

how does using deletestring make any sense there?

maximus_asinus 03-19-2005 10:02 PM

upon further examination I see that deletestring doesn't make sense there.

Admins 03-21-2005 03:22 AM

setstring is perfect for this, it just deletes the variable and all its contents :) its like in new scripting when you do varname = ""


All times are GMT +2. The time now is 04:58 AM.

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