Get number from string
#2

https://sampwiki.blast.hk/wiki/Strval

Create a new string that only has the integer value and use strval. Something like this;

new string[20];
format(string, sizeof(string), "%d", TeleportData[i][ID]);
new integervalue = strval(string);

Change the string size to fit your needs.

integervalue will hold the number.
Reply


Messages In This Thread
Get number from string - by 3417512908 - 30.07.2018, 02:13
Re: Get number from string - by Rufio - 30.07.2018, 02:24
Re: Get number from string - by 3417512908 - 30.07.2018, 02:30
Re: Get number from string - by Rufio - 30.07.2018, 02:31

Forum Jump:


Users browsing this thread: 1 Guest(s)