04.01.2014, 18:15
What you're trying to do is a very weird way of doing it to be honest, IMO. I would make multiple input dialogs rather, and then let the user put in the id's one after another in the dialogs.
https://sampwiki.blast.hk/wiki/Strdel
- Loop through the whole string by using strlen (as in for(new i = 0; i <= strlen(inputtext)...).
- Search for a "space", by that I mean searching for (' ') without brackets:
if (name[i] == ' ') then use strdel, otherwise continue the loop.
- Then use as suggested above, strval.
I won't make the code for you because I find this too complicated for me to do in one minute. I'd have to test the code etc. :P
https://sampwiki.blast.hk/wiki/Strdel
- Loop through the whole string by using strlen (as in for(new i = 0; i <= strlen(inputtext)...).
- Search for a "space", by that I mean searching for (' ') without brackets:
if (name[i] == ' ') then use strdel, otherwise continue the loop.
- Then use as suggested above, strval.
I won't make the code for you because I find this too complicated for me to do in one minute. I'd have to test the code etc. :P