Get part of string.
#1

For example, i got "Landstalker 15000" and want to extract only 15000 from this string.
Reply
#2

Quote:
Originally Posted by xHanks
Посмотреть сообщение
For example, i got "Landstalker 15000" and want to extract only 15000 from this string.
pawn Код:
new str[] = "Landstalker 15000";
    strdel(str,0,12);
    printf("%s",str);

deleting from 0 to 12
resulting in str being: "15000"

you need to know (or "detect") where your number starts
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)