Convert string with numbers into numbers only?
#1

I have this string:

pawn Код:
new pInfo[5], buff[5], string[24];

for(new i; i < 5; i++)
{
     pInfo[i] = "You have +200 points";
     points[i] += 5;
     buff[i] = strval(pInfo[i]);
     printf("Points %i %d", i, buff[i]);
     //more code...
}
And it did not work, I did some debugging and found that strval(); is not working if it has letters..

Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)