Tag mismatch
#1

Hello guys!

Код:
: error 035: argument type mismatch (argument 2)
pawn Код:
TextDrawShowForPlayer(i,TDBACK);
          TextDrawShowForPlayer(i,PadanguBukle);
          TextDrawShowForPlayer(i,PriekineKaire);
          TextDrawShowForPlayer(i,PriekineDesine);
          TextDrawShowForPlayer(i,Priekines);
          TextDrawShowForPlayer(i,Galines);
          TextDrawShowForPlayer(i,GalineDesine);
          TextDrawShowForPlayer(i,GalineKaire);
Reply
#2

Those variables must have Text: tag when they are declared.
Reply
#3

Added like this

pawn Код:
new PlayerText:TDBACK[MAX_PLAYERS];
new PlayerText:PadanguBukle[MAX_PLAYERS];
new PlayerText:PriekineKaire[MAX_PLAYERS];
new PlayerText:PriekineDesine[MAX_PLAYERS];
new PlayerText:Priekines[MAX_PLAYERS];
new PlayerText:Galines[MAX_PLAYERS];
new PlayerText:GalineDesine[MAX_PLAYERS];
new PlayerText:GalineKaire[MAX_PLAYERS];
pawn Код:
TextDrawShowForPlayer(i,Text:TDBACK);
                    TextDrawShowForPlayer(i,Text:PadanguBukle);
                    TextDrawShowForPlayer(i,Text:PriekineKaire);
                    TextDrawShowForPlayer(i,Text:PriekineDesine);
                    TextDrawShowForPlayer(i,Text:Priekines);
                    TextDrawShowForPlayer(i,Text:Galines);
                    TextDrawShowForPlayer(i,Text:GalineDesine);
                    TextDrawShowForPlayer(i,Text:GalineKaire);

Still same
Reply
#4

Those are per-player textdraws so you should use PlayerTextDrawShow function and the index of the array:
pawn Код:
PlayerTextDrawShow(i, TDBACK[i]);
Do the same for the rest.
Reply
#5

Oh... so TextDrawShowForPlayer() is used for global textdraws?
By the way thanks - fixed.
Reply
#6

Yes. You can find all the functions for per-player textdraws at the bottom of the page: https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)