some questions / help.
#6

1)
Код:
//when a player joins a team
if( gTeamCount[ ID_OF_TEAM ] == 10 ) //change ID_OF_TEAM with the actual ID of the team
{
    SendClientMessage( playerid, 0xFF0000FF, "There are already max players in this team, chose another one!" );
    return 0;
}
else
{
    return gTeamCount[ ID_OF_TEAM ]++;
}
You forgot on return 0;
Reply


Messages In This Thread
some questions / help. - by AndriusZ* - 04.09.2010, 19:50
Re: some questions / help. - by AndriusZ* - 04.09.2010, 21:07
Re: some questions / help. - by Ironboy500[TW] - 04.09.2010, 21:21
Re: some questions / help. - by Dime - 04.09.2010, 21:24
Re: some questions / help. - by LarzI - 04.09.2010, 21:24
Re: some questions / help. - by Ironboy500[TW] - 04.09.2010, 21:28
Re: some questions / help. - by LarzI - 04.09.2010, 21:31
Re: some questions / help. - by Ironboy500[TW] - 04.09.2010, 21:33
Re: some questions / help. - by LarzI - 04.09.2010, 21:48
Re: some questions / help. - by AndriusZ* - 04.09.2010, 22:18

Forum Jump:


Users browsing this thread: 3 Guest(s)