How to delete the first 2 chars of a string?
#1

How to delete the first 2 characters of a string?
Thanks
Reply
#2

pawn Код:
//strdel(string[], start, end);

strdel("string", 0, 2);
// "ring"
Or if you just want to read the string from third character, just do for example:
pawn Код:
new string[] = "string";
print(string[2]);
//will print "ring"

Reply
#3

Thanks alot :P

I give you a cookie
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)