Finding last number in string
#1

Hi

If I have string:
Code:
Your number is: 666999
How I can find last number in string and delete it or add something after it?
Reply
#2

i suggest you to use the sscanf2 plugin for that:
Code:
new Amount;
if(sscanf(string,"{s[100]}d",Amount);
well, this will get the first number in string[] so i hope it helps a bit
Reply
#3

I need last number :/
Reply
#4

refresh
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)