11.02.2011, 18:42
hi,
there are 2 teams and i want to attach 3d text labels with their current ranks to the players.
But i got a missmatch warning!
Whats wrong?
there are 2 teams and i want to attach 3d text labels with their current ranks to the players.
But i got a missmatch warning!
Whats wrong?
pawn Код:
stock Add3DTextLabelToPlayer(playerid)
{
//Labels
ranklabelCTU[playerid] = Create3DTextLabel("{1464F4}CTU",0xF97804FF,30.0,40.0,50.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
ranklabelSNAKES[playerid] = Create3DTextLabel("{CC3232}Coral Snake",0xF97804FF,30.0,40.0,50.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
{
switch (gTeam[playerid])
{
case 1: //police
{
Attach3DTextLabelToPlayer(ranklabelCTU[playerid], playerid, 0.0, 0.0, 0.5);
new labelstring[50];
format(labelstring, sizeof(labelstring), "{1464F4}CTU {20B2AA}%d", RankName[pRank[playerid]]);
UpdatePlayer3DTextLabelText(playerid, ranklabelCTU[playerid], 0xF97804FF, labelstring);//here
}
case 2: //terrorists
{
Attach3DTextLabelToPlayer(ranklabelSNAKES[playerid], playerid, 0.0, 0.0, 0.5);
new labelstring[50];
format(labelstring, sizeof(labelstring), "{CC3232}Coral Snake {C73F17}%d", RankName[pRank[playerid]]);
UpdatePlayer3DTextLabelText(playerid, ranklabelSNAKES[playerid], 0xF97804FF, labelstring);//and here
}
}
}
}