Where did those warnings come from?
#6

Quote:
Originally Posted by Raimis_R
Посмотреть сообщение
pawn Код:
stock SetPlayerTeamFromClass(playerid,classid)
{
    if (classid == X) { gTeam[playerid] = TEAM_X; }
    else if (classid == Y) { gTeam[playerid] = TEAM_Y; }
    else if (classid == Z) { gTeam[playerid] = TEAM_Z; }
    else if (classid == A) { gTeam[playerid] = TEAM_A; }
    else if (classid == B) { gTeam[playerid] = TEAM_B; }
    else if (classid == C) { gTeam[playerid] = TEAM_C; }
    else if (classid == D) { gTeam[playerid] = TEAM_D; }
    else if (classid == E) { gTeam[playerid] = TEAM_E; }
    else if (classid == F) { gTeam[playerid] = TEAM_F; }
    else if (classid == G) { gTeam[playerid] = TEAM_G; }
    else if (classid == H) { gTeam[playerid] = TEAM_H; }
    else if (classid == I) { gTeam[playerid] = TEAM_I; }
    else if (classid == J) { gTeam[playerid] = TEAM_J; }
    else if (classid == K) { gTeam[playerid] = TEAM_K; }
    return 1;
}
I thank about that but I have noticed something:
1)It never gave me those warnings before I added another stock
2)And if for example I have 5 arguments of X? What do I do then?
Reply


Messages In This Thread
Where did those warnings come from? - by nuriel8833 - 15.05.2011, 17:11
Re: Where did those warnings come from? - by cs_master - 15.05.2011, 17:18
Re: Where did those warnings come from? - by nuriel8833 - 15.05.2011, 17:28
Re: Where did those warnings come from? - by cs_master - 15.05.2011, 17:35
Re: Where did those warnings come from? - by Raimis_R - 15.05.2011, 17:35
Re: Where did those warnings come from? - by nuriel8833 - 15.05.2011, 17:39
Re: Where did those warnings come from? - by Raimis_R - 15.05.2011, 17:42
Re: Where did those warnings come from? - by nuriel8833 - 15.05.2011, 18:00
Respuesta: Where did those warnings come from? - by admantis - 15.05.2011, 18:01
Re: Where did those warnings come from? - by __ - 15.05.2011, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)