06.05.2012, 02:32
Here are a few errors in your tutorial:
1. First section of code is missing a closing bracket under OnPlayerCommandText.
2. On all of the command checks, you have something like this:
You're missing the 'i' on 'if'.
3. If you look at this line:
You seem to have playerid. Playerid isn't needed in SendClientMessageToAll as it doesn't have a param for it (sends to everyone rather than a single player).
4. You have random snippets of code everywhere, not sure what you're trying to do with them. If you're trying to explain something, use comments (//).
5. This line:
There is no closing quote / bracket and no valid colour.
Your explanations are pretty hard to follow, someone new at PAWN may have trouble reading this tutorial and understanding it properly.
Just a bit of constructive criticism .
1. First section of code is missing a closing bracket under OnPlayerCommandText.
2. On all of the command checks, you have something like this:
pawn Code:
f (strcmp("/COMMAND HERE", cmdtext, true, 10) == 0)
3. If you look at this line:
pawn Code:
SendClientMessageToAll(playerid, 0xFF0606AA,"You have been banned from the server");
4. You have random snippets of code everywhere, not sure what you're trying to do with them. If you're trying to explain something, use comments (//).
5. This line:
pawn Code:
SendClientMessage(playerid, COLOR,"this will just send client message to the player used for
Your explanations are pretty hard to follow, someone new at PAWN may have trouble reading this tutorial and understanding it properly.
Just a bit of constructive criticism .