19.04.2009, 10:51
The braces are used when there are more than 1 function.
If you use 1 function , you can use or not Braces ( same thing )
e.g.
it's equal with:
************************************************** ***************************
If you use 2 functions ore more , you must use the Braces, or you'll get errors.
e.g.
If you use 1 function , you can use or not Braces ( same thing )
e.g.
pawn Код:
if(PlayerLevel[playerid] > 1) return SendClientMessage(playerid,COLOR_WHITE,"ETC");
pawn Код:
if(PlayerLevel[playerid] > 1) { return SendClientMessage(playerid,COLOR_WHITE,"ETC"); }
If you use 2 functions ore more , you must use the Braces, or you'll get errors.
e.g.
pawn Код:
if(PlayerLevel[playerid] > 1)
{
Kick(playerid);
return SendClientMessage(playerid,COLOR_WHITE,"ETC");
}