Diffrent class for diffrent team is not working help +Rep
#1

i have made new classes for new team but

cods not working

when player change class he show CLASS_DIALOG2.

pawn Код:
if(Switchclass[playerid] == 1)
     {
        SendClientMessage(playerid, -1,"Please select your class");
        FirstSpawn[playerid] = 0;
        if(Team[playerid]==TEAM_AFGHANISTAN)
        {
        ShowPlayerDialog(playerid, CLASS_DIALOG2, DIALOG_STYLE_LIST,"Class Selection",""ccolor"Terrorist - "ccolor2"Rank 0\n"ccolor"Sucider - "ccolor2"Rank 1\n"ccolor"Bomber - "ccolor2"Rank 4\n"ccolor"Weapon master - "ccolor2"Rank 3","Select","");
        }
        else
        {
        ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST,"Class Selection",""ccolor"Assault - "ccolor2"Rank 0\n"ccolor"Sniper - "ccolor2"Rank 1\n"ccolor"Pilot - "ccolor2"Rank 4\n"ccolor"Engineer - "ccolor2"Rank 3\n"ccolor"Support - "ccolor2"Rank 2\n"ccolor"Scout - "ccolor2"Rank 3\n"ccolor"Spy - "ccolor2"Rank 6\n"ccolor"Jet-Pilot - "ccolor2"Rank 5\n"ccolor"Donor - "ccolor2"For Donors only","Select","");
        }
     }
Reply
#2

anyone?
Reply
#3

where do you change the Team[playerid] for the player?
Reply
#4

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
where do you change the Team[playerid] for the player?
i dont understanded mate
Reply
#5

when the player selects the class, how do you set the var, would be something like;
Код:
Team[playerid]=TEAM_AFGHANISTAN; // or
Team[playerid]=TEAM_ASSULT;
so you can check it with your "if" statment, here;
Код:
if(Team[playerid]==TEAM_AFGHANISTAN)
and somewhere at the top of your script it should proberly say
Код:
#define TEAM_AFGHANISTAN 1
#define TEAM_ASSULT 0
and there should be at the top of the sctipt too
Код:
Team[MAX_PLAYERS];
got all that in your code?
Reply
#6

ohh god i forgeted that i have

pawn Код:
gTeam[MAX_PLAYERS];
not


pawn Код:
Team[MAX_PLAYERS];
thanks for Attention!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)