18.05.2016, 17:23
Can someone help me with this warns
And i get these
These are the lines of warns
PHP код:
new Text:hdisplay[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
hdisplay[playerid] = TextDrawCreate(505.625000, 427.583404, "Health:");
TextDrawLetterSize(hdisplay[playerid], 0.469375, 2.020000);
TextDrawAlignment(hdisplay[playerid], 1);
TextDrawColor(hdisplay[playerid], -5963521);
TextDrawSetShadow(hdisplay[playerid], 0);
TextDrawSetOutline(hdisplay[playerid], 1);
TextDrawBackgroundColor(hdisplay[playerid], 51);
TextDrawFont(hdisplay[playerid], 1);
TextDrawSetProportional(hdisplay[playerid], 1);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid)
{
new Float: health, szText[10];
GetVehicleHealth(vehicleid, health);
format(szText, sizeof (szText), "%.2f", health);
PlayerTextDrawSetString(playerid, hdisplay[playerid], szText);
PlayerTextDrawShow(playerid, hdisplay[playerid]);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
PlayerTextDrawHide(playerid, hdisplay[playerid]);
return 1;
}
PHP код:
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(3008) : warning 213: tag mismatch
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(3009) : warning 213: tag mismatch
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(3020) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
PHP код:
PlayerTextDrawSetString(playerid, hdisplay[playerid], szText);
PlayerTextDrawShow(playerid, hdisplay[playerid]);
PlayerTextDrawHide(playerid, hdisplay[playerid]);