Target ID to inputtext
#8

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
Reply


Messages In This Thread
Target ID to inputtext - by Riwerry - 04.01.2014, 16:51
Re: Target ID to inputtext - by MatriXgaMer - 04.01.2014, 16:54
Re: Target ID to inputtext - by Seif- - 04.01.2014, 17:05
Re: Target ID to inputtext - by Riwerry - 04.01.2014, 17:10
Re: Target ID to inputtext - by Konstantinos - 04.01.2014, 17:21
Re: Target ID to inputtext - by Patrick - 04.01.2014, 17:23
Re: Target ID to inputtext - by Riwerry - 04.01.2014, 17:59
Re: Target ID to inputtext - by Hansrutger - 04.01.2014, 18:15
Re: Target ID to inputtext - by Mic_H - 04.01.2014, 22:36

Forum Jump:


Users browsing this thread: 3 Guest(s)