Tag mismatch errors (CreatePlayerTextDraw)
#1

I'm unsure of why I'm recieving these errors.



pawn Код:
stock UpdateBankTD(playerid)
{
    new tdcashstring[50];
    new bank = pInfo[playerid][pBankBalance];
    format(tdcashstring,sizeof(tdcashstring), "%d", bank);
    //"Bank: " td
    TD_BANK[playerid] =  CreatePlayerTextDraw(playerid,491.000000,126.000000,"Bank:");
    PlayerTextDrawAlignment(playerid,TD_BANK[playerid],0);
    PlayerTextDrawBackgroundColor(playerid,TD_BANK[playerid],0x000000ff);
    PlayerTextDrawFont(playerid,TD_BANK[playerid],3);
    PlayerTextDrawLetterSize(playerid,TD_BANK[playerid],1.000000,1.000000);
    PlayerTextDrawColor(playerid,TD_BANK[playerid],0x00ff0099);
    PlayerTextDrawSetOutline(playerid,TD_BANK[playerid],1);
    PlayerTextDrawSetShadow(playerid,TD_BANK[playerid],3);
    PlayerTextDrawSetShadow(playerid,TD_BANK[playerid],1);
   
    //Bank string (how much money)
    TD_CASH[playerid] = CreatePlayerTextDraw(playerid,593.000000,126.000000,tdcashstring);
    PlayerTextDrawAlignment(playerid,TD_CASH[playerid],0);
    PlayerTextDrawBackgroundColor(playerid,TD_CASH[playerid],0x000000ff);
    PlayerTextDrawFont(playerid,TD_CASH[playerid],3);
    PlayerTextDrawLetterSize(playerid,TD_CASH[playerid],0.499999,0.899999);
    PlayerTextDrawColor(playerid,TD_CASH[playerid],0xffffffff);
    PlayerTextDrawSetOutline(playerid,TD_CASH[playerid],1);
    PlayerTextDrawSetProportional(playerid,TD_CASH[playerid],1);
    PlayerTextDrawSetShadow(playerid,TD_CASH[playerid],1);
    //refreshing it.
    PlayerTextDrawHide(playerid, TD_CASH[playerid]);
    PlayerTextDrawShow(playerid, TD_CASH[playerid]);
    return 1;
}
Reply
#2

show me the warnings please.
Reply
#3

Код:
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(363) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(364) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(365) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(366) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(367) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(368) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(369) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(370) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(371) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(374) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(375) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(376) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(377) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(378) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(379) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(380) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(381) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(382) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(384) : warning 213: tag mismatch
C:\Users\Luke\Desktop\A-CNR\gamemodes\A-CnR.pwn(385) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


20 Warnings.
Reply
#4

warnings lines i mean , sorry.
Reply
#5

and make sure you have :
new Text:TD_BANK[MAX_PLAYERS];
new Text:TD_CASH[MAX_PLAYERS];
instead of
new TD_CASH[MAX_PLAYERS];
new TD_BANK[MAX_PLAYERS];
Reply
#6

The warnings are on every single function in the stock and yes - it's exactly like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)