is this a Right Code?
#3

pawn Код:
new players = 0;

public OnPlayerConnect(playerid)
{
     players++;
     printf("There are currently %d players online.", players);
     return 1;
}
public OnPlayerDisconnect(playerid)
{
     players--;
     printf("There are currently %d players online.", players);
     return 1;
}
This is a right example.
Reply


Messages In This Thread
is this a Right Code? - by Andrew97 - 15.04.2012, 09:58
Re: is this a Right Code? - by Andrew97 - 15.04.2012, 10:00
Re: is this a Right Code? - by fordawinzz - 15.04.2012, 10:02
Re: is this a Right Code? - by Andrew97 - 15.04.2012, 10:04
Re: is this a Right Code? - by [HiC]TheKiller - 15.04.2012, 10:09
Re: is this a Right Code? - by Andrew97 - 15.04.2012, 10:11
Re: is this a Right Code? - by [HiC]TheKiller - 15.04.2012, 10:13
Re: is this a Right Code? - by Andrew97 - 15.04.2012, 10:13
Re: is this a Right Code? - by Andrew97 - 15.04.2012, 10:16
Re: is this a Right Code? - by Andrew97 - 15.04.2012, 10:29

Forum Jump:


Users browsing this thread: 1 Guest(s)