functions problem
#7

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.:
pawn Код:
if(IsPlayerConnect(playerid)) SendClientMessage(playerid, 0x999999AA, "You are a noob");
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:
pawn Код:
if(IsPlayerConnected(playerid))
{
    SendClientMessage(playerid, 0x999999AA, "You are a noob");
    Kick(playerid);
}
Reply


Messages In This Thread
functions problem - by Face9000 - 21.01.2011, 11:33
Re: functions problem - by ExeC - 21.01.2011, 11:33
Re: functions problem - by Face9000 - 21.01.2011, 11:34
Re: functions problem - by ExeC - 21.01.2011, 11:40
Re: functions problem - by Mike Garber - 21.01.2011, 11:46
Re: functions problem - by Face9000 - 21.01.2011, 11:46
Re: functions problem - by Sascha - 21.01.2011, 12:23

Forum Jump:


Users browsing this thread: 3 Guest(s)