Guten Abend,
also ich habe ein HP/Armour Draw, doch leider kommen 2 Warnings durch denen das glaub ich auch nicht Ingame erscheint.
Code:
new PlayerText:HPdraw[MAX_PLAYERS];
new PlayerText:ARMOURdraw[MAX_PLAYERS];
Unter OnPlayerConnect....
TextDrawShowForPlayer(playerid, HPdraw[playerid]);
TextDrawShowForPlayer(playerid, ARMOURdraw[playerid]);
HPdraw[playerid] = CreatePlayerTextDraw(playerid,8,315,"_");
PlayerTextDrawFont(playerid,HPdraw[playerid],1);
PlayerTextDrawAlignment(playerid,HPdraw[playerid],0);
PlayerTextDrawLetterSize(playerid,HPdraw[playerid],0.500000,0.999990);
PlayerTextDrawSetProportional(playerid,HPdraw[playerid],1);
PlayerTextDrawSetShadow(playerid,HPdraw[playerid],1);
ARMOURdraw[playerid] = CreatePlayerTextDraw(playerid,140,315,"_");
PlayerTextDrawFont(playerid,ARMOURdraw[playerid],1);
PlayerTextDrawAlignment(playerid,ARMOURdraw[playerid],0);
PlayerTextDrawLetterSize(playerid,ARMOURdraw[playerid],0.500000,0.999990);
PlayerTextDrawSetProportional(playerid,ARMOURdraw[playerid],1);
PlayerTextDrawSetShadow(playerid,ARMOURdraw[playerid],1);
Unter OnPlayerDisconnect...
PlayerTextDrawDestroy(playerid,HPdraw[playerid]);
PlayerTextDrawDestroy(playerid,ARMOURdraw[playerid]);
Die Warnings... 'warning 213: tag mismatch'
Zeilen:
TextDrawShowForPlayer(playerid, HPdraw[playerid]);
TextDrawShowForPlayer(playerid, ARMOURdraw[playerid]);