SA-MP Forums Archive
Explain a few stuff please. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Explain a few stuff please. (/showthread.php?tid=172832)



Explain a few stuff please. - Learningtoscript - 31.08.2010

What is a "string", what does it do.
Код:
new string[256];
Explain this line.
Код:
cmd = strtok(cmdtext, idx);



Re: Explain a few stuff please. - Calgon - 31.08.2010

http://en.wikipedia.org/wiki/String_...ter_science%29

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

Quote:
Originally Posted by SA-MP Wiki that you don't seem to be smart enough to read from
strtok is used to search a string and find a variable typed after a " " (space), then return it as a string.