Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   deletestring?! (https://forums.graalonline.com/forums/showthread.php?t=46997)

Andy0687 08-11-2003 01:34 AM

deletestring?!
 
so i was having trouble with a deletestring npc
what i wanted it to do is when used, would trim back the string by one

so something like
lolhi
would become
lolh

when used

this is what i got

NPC Code:
    deletestring client.reg#v(this.id),strlen(#s(client.reg#v(this.  id))-1);



it gives me no error in the editor and i asked some other people other possibilies to do this, but nothing has worked so far :asleep:

TribulationStaff 08-11-2003 01:52 AM

#e(startindex,length,string)

Kaimetsu 08-11-2003 05:15 AM

deletestring is for string arrays, normal strings are not string arrays. Use #e, as Giltwist said.

Andy0687 08-11-2003 06:40 AM

Quote:

Originally posted by TribulationStaff
#e(startindex,length,string)
yar, thanks for that Gilt


All times are GMT +2. The time now is 06:09 AM.

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