[Tutorial] Simple Things
#2

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:
pawn Code:
f (strcmp("/COMMAND HERE", cmdtext, true, 10) == 0)
You're missing the 'i' on 'if'.
3. If you look at this line:
pawn Code:
SendClientMessageToAll(playerid, 0xFF0606AA,"You have been banned from the server");
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:
pawn Code:
SendClientMessage(playerid, COLOR,"this will just send client message to the player used for
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 .
Reply


Messages In This Thread
Simple Things - by SwiftKidZ - 06.05.2012, 00:55
Re: Simple Things - by [HiC]TheKiller - 06.05.2012, 02:32
Re: Simple Things - by SwiftKidZ - 06.05.2012, 10:17

Forum Jump:


Users browsing this thread: 1 Guest(s)