01.08.2015, 12:08
Yeah, some things are not explained at all.
I know it's for beginners but you should explain what are you doing here. What define means and how it replaces the text.
Same goes for multi dimensional arrays. It took me some times to fully understand how they works.
"What we do there ? We created a 2 Dimensional string instead of "new String[128], String2[128];" Okay. We have an array but how to use it?
That is a bad example. Also 256-strings. Nope.
pawn Code:
#define SCM SendClientMessage // You can use now SCM instead of SendClientMessage
#define SPD ShowPlayerDialog // You can use SPD now instead of ShowPlayerDialog
Same goes for multi dimensional arrays. It took me some times to fully understand how they works.
"What we do there ? We created a 2 Dimensional string instead of "new String[128], String2[128];" Okay. We have an array but how to use it?
Code:
new gString[256]; format(gString, sizeof(gString), "You have spawned !"); return 1;