21.01.2011, 12:23
ok guys here is a basic structure thing of coding languages...
in case you are using an "if" you have to define the beginning and the end of this check.
In case there is only one thing that should be done after the if you can write it straight behind...
e.g.:
but if there is more than 1 thing to be executed, you have to define the beginning and the end by using { and } in pwn...
like:
in case you are using an "if" you have to define the beginning and the end of this check.
In case there is only one thing that should be done after the if you can write it straight behind...
e.g.:
pawn Код:
if(IsPlayerConnect(playerid)) SendClientMessage(playerid, 0x999999AA, "You are a noob");
like:
pawn Код:
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, 0x999999AA, "You are a noob");
Kick(playerid);
}