Gangchat?
#10

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Thanks at both.

Benjo,i've a problem.

I definied the teams name as TEAM_TEAMNAME:

Код:
stock GetTeamName(playerid, tname[], len)
{
    switch(gTeam[playerid])
    {
        case 0: format(tname, len, "TEAM_SWAT");
        case 1: format(tname, len, "TEAM_CHICKENS");
        case 2: format(tname, len, "TEAM_KAMIKAZERS");
        case 3: format(tname, len, "TEAM_IMMIGRANTS");
        case 4; format(tname, len, "TEAM_MEDICS");
        case 5; format(tname, len, "TEAM_FARMERS");
        case 6; format(tname, len, "TEAM_RICHS")
        case 7; format(tname, len, "TEAM_PILOTS");

        default: printf("Invalid team name");
    }
    return 1;
}
But i get lots of errors in the gm...
The problem comes because you have put semi-colons ( after case 4, 5, 6 and 7. They need to be colons (. Check out the correct that [FU]Victious made for you - should work fine.

Sorry for late response btw.
Reply


Messages In This Thread
Gangchat? - by Face9000 - 17.12.2010, 21:57
Re: Gangchat? - by blackwave - 17.12.2010, 22:35
Re: Gangchat? - by Benjo - 17.12.2010, 23:02
Re: Gangchat? - by Face9000 - 18.12.2010, 07:48
Re: Gangchat? - by Face9000 - 18.12.2010, 19:07
Re: Gangchat? - by blackwave - 18.12.2010, 19:12
Re: Gangchat? - by Darklom - 18.12.2010, 19:12
Re: Gangchat? - by Face9000 - 18.12.2010, 19:19
Re: Gangchat? - by blackwave - 18.12.2010, 19:36
Re: Gangchat? - by Benjo - 19.12.2010, 00:11

Forum Jump:


Users browsing this thread: 1 Guest(s)