Need Scripting Help !!!!
#1

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, " ");


}
}
Reply
#2

You Must Add This #define MAX_TEAMS 10 Exemple :
Quote:

//===========================
#define TEAM_EURASIA 0
#define TEAM_ARAB 1
#define TEAM_SOVIET 2
#define TEAM_USA 3
#define TEAM_AUS 4
#define TEAM_NONE 5
#define TEAM_SPAIN 6
#define TEAM_BRAZIL 7
#define TEAM_INDIA 8
#define TEAM_FR 9
#define MAX_TEAMS 10

Reply
#3

Still Same Error
Reply
#4

If you have errors show me
Reply
#5

How many classes do you have (AddPlayerClass)?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)