[Tutorial] Simple Roleplay Commands. /me and /do
#10

Quote:
Originally Posted by Sublime
Посмотреть сообщение
Why do you have to declare an array 128 slots big for /do? If you are limiting the players' usage to 99 words, use an array which has 100 slots because the other 28 slots are not touched, generally waste. ;

pawn Код:
new string[100];
Explain each function and parameters, don't be too lazy for it. And please clean up your thread, it's too classic.
Not at all. If you look, the total potential length of "string" is 132 (given a 99-character string and a 24-character name). "string" holds the entire message, not just the entered text.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)