[Tutorial] Making simple commands using zcmd and sscanf
#9

I have quite the same thoughts as the people above, you don't explain well enough how stuff works.
There's small comments on the sides of the script, which is fine, but you should also go in-depth and explain HOW stuff works, and WHY it works like that.
Here's a random snippet from your heal command.
pawn Код:
if(sscanf(params,"u",ID)) // "u" can be defined for inserting a name or an ID
   { // then
        SendClientMessage(playerid,COLOR_RED,"[ERROR] /heal (Player Name/ID)"); //When the player didn't enter the fields correctly, It'll say this message to him.
You do not explain several things here. Etc, what is this
pawn Код:
if(sscanf(params,"u",ID)) // "u" can be defined for inserting a name or an ID
How does it work? Like what does the "u" actually do, and in relation to other characters like "s" or something.
All in all it would be nicer with some more depth in the tutorial, than commands that has short comments barely scratching the surface of what stuff does.

Or even for newbies, what does the "if" do, or "params".
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)