22.06.2016, 05:20
Guys I Have Created This Team Selection .Total 7 Teams , I have created 7 cases but in game just 4 cases showing Means Just 4 Team. No Error Nothing , Also Compiled But.. Plz Help Me
switch(classid)
{
case 0:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
gTeam[playerid] = TEAM_USA;
SetPlayerTeam(playerid, 0);
SetPlayerSkin(playerid, 250);
SetPlayerColor(playerid, TEAM_USA_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 1:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
gTeam[playerid] = TEAM_ARAB;
SetPlayerTeam(playerid, 1);
SetPlayerSkin(playerid, 122);
SetPlayerColor(playerid, TEAM_ARAB_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 2:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
gTeam[playerid] = TEAM_SOVIET;
SetPlayerTeam(playerid, 2);
SetPlayerSkin(playerid, 285);
SetPlayerColor(playerid, TEAM_SOVIET_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 3:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
SetPlayerTeam(playerid, 5);
SetPlayerSkin(playerid, 287);
SetPlayerColor(playerid, TEAM_AUS_COLOR);
gTeam[playerid] = TEAM_AUS;
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 4:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
SetPlayerTeam(playerid, 4);
SetPlayerSkin(playerid, 181);
gTeam[playerid] = TEAM_ERRUSIA;
SetPlayerColor(playerid, TEAM_ERRUSIA_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 5:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
SetPlayerTeam(playerid, 6);
SetPlayerSkin(playerid, 247);
gTeam[playerid] = TEAM_TALIB;
SetPlayerColor(playerid, TEAM_TALIB_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 6:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
SetPlayerTeam(playerid, 7);
SetPlayerSkin(playerid, 248 );
gTeam[playerid] = TEAM_MERC;
SetPlayerColor(playerid, 0xFFFFFFFF);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
}
switch(classid)
{
case 0:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
gTeam[playerid] = TEAM_USA;
SetPlayerTeam(playerid, 0);
SetPlayerSkin(playerid, 250);
SetPlayerColor(playerid, TEAM_USA_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 1:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
gTeam[playerid] = TEAM_ARAB;
SetPlayerTeam(playerid, 1);
SetPlayerSkin(playerid, 122);
SetPlayerColor(playerid, TEAM_ARAB_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 2:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
gTeam[playerid] = TEAM_SOVIET;
SetPlayerTeam(playerid, 2);
SetPlayerSkin(playerid, 285);
SetPlayerColor(playerid, TEAM_SOVIET_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 3:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
SetPlayerTeam(playerid, 5);
SetPlayerSkin(playerid, 287);
SetPlayerColor(playerid, TEAM_AUS_COLOR);
gTeam[playerid] = TEAM_AUS;
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 4:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
SetPlayerTeam(playerid, 4);
SetPlayerSkin(playerid, 181);
gTeam[playerid] = TEAM_ERRUSIA;
SetPlayerColor(playerid, TEAM_ERRUSIA_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 5:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
SetPlayerTeam(playerid, 6);
SetPlayerSkin(playerid, 247);
gTeam[playerid] = TEAM_TALIB;
SetPlayerColor(playerid, TEAM_TALIB_COLOR);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
case 6:
{
SetPlayerPos(playerid,1523.7712,-44.1814,1002.1788 );
SetPlayerCameraPos(playerid, 1523.6241, -48.2506, 1002.7181);
SetPlayerCameraLookAt(playerid, 1523.6140, -47.2473, 1002.5630);
SetPlayerFacingAngle(playerid, 180);
SetPlayerInterior(playerid,2);
SetPlayerTeam(playerid, 7);
SetPlayerSkin(playerid, 248 );
gTeam[playerid] = TEAM_MERC;
SetPlayerColor(playerid, 0xFFFFFFFF);
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
}
}