SA-MP Forums Archive
inputtext help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: inputtext help (/showthread.php?tid=527973)



inputtext help - ~~Seb' Script~~ - 25.07.2014

Hello Guys,
I have a problem i want to cut inputtext and to return just the first character
like inputtext[1] but it doesn't work.


Please help me .


Re: inputtext help - Vince - 25.07.2014

Quote:
Originally Posted by ~~Seb' Script~~
Посмотреть сообщение
Hello Guys,
but it doesn't work.
Ah, love these vague descriptions! Doesn't work how? What have you tried? Provide the code if you want people to assist you. Anyway, to extract a single character, use "%c" rather than "%s".


Re: inputtext help - sammp - 25.07.2014

Well you don't do inputtext[1] because that's looking for something else.

You might be able to:

pawn Код:
strmid(some_variable, inputtext, 1, 1);
Though im not sure.