stats[playerid] = CreatePlayerTextDraw(playerid, 309.999908, 141.466476, "Stats: Nick(ID)");
PlayerTextDrawLetterSize(playerid, stats[playerid], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, stats[playerid], 0.000000, 295.000000);
PlayerTextDrawAlignment(playerid, stats[playerid], 2);
PlayerTextDrawColor(playerid, stats[playerid], 16711935);
PlayerTextDrawUseBox(playerid, stats[playerid], 1);
PlayerTextDrawBoxColor(playerid, stats[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, stats[playerid], 0);
PlayerTextDrawSetOutline(playerid, stats[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, stats[playerid], 255);
PlayerTextDrawFont(playerid, stats[playerid], 1);
PlayerTextDrawSetProportional(playerid, stats[playerid], 1);
PlayerTextDrawSetShadow(playerid, stats[playerid], 0);
xex[playerid] = CreatePlayerTextDraw(playerid, 433.199920, 140.719909, "[X]");
PlayerTextDrawLetterSize(playerid, xex[playerid], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, xex[playerid], 24.0, 96.000000);
PlayerTextDrawAlignment(playerid, xex[playerid], 1);
PlayerTextDrawColor(playerid, xex[playerid], -2147483393);
PlayerTextDrawSetShadow(playerid, xex[playerid], 0);
PlayerTextDrawSetOutline(playerid, xex[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, xex[playerid], -1);
PlayerTextDrawFont(playerid, xex[playerid], 3);
PlayerTextDrawSetProportional(playerid, xex[playerid], 1);
PlayerTextDrawSetShadow(playerid, xex[playerid], 0);
PlayerTextDrawSetSelectable(playerid, xex[playerid], true);
nothing[playerid] = CreatePlayerTextDraw(playerid, 163.599884, 160.880035, "_");
PlayerTextDrawLetterSize(playerid, nothing[playerid], 0.330399, 18.952539);
PlayerTextDrawTextSize(playerid, nothing[playerid], 457.400299, 0.000000);
PlayerTextDrawAlignment(playerid, nothing[playerid], 1);
PlayerTextDrawColor(playerid, nothing[playerid], -1);
PlayerTextDrawUseBox(playerid, nothing[playerid], 1);
PlayerTextDrawBoxColor(playerid, nothing[playerid], 255);
PlayerTextDrawSetShadow(playerid, nothing[playerid], 0);
PlayerTextDrawSetOutline(playerid, nothing[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, nothing[playerid], 255);
PlayerTextDrawFont(playerid, nothing[playerid], 1);
PlayerTextDrawSetProportional(playerid, nothing[playerid], 1);
PlayerTextDrawSetShadow(playerid, nothing[playerid], 0);
CMD:showtextdraw(playerid, params[])
{
PlayerTextDrawShow(playerid, stats[playerid]);
PlayerTextDrawShow(playerid, xex[playerid]);
SelectTextDraw(playerid, 0x00FF00FF);
PlayerTextDrawShow(playerid, nothing[playerid]);
return 1;
}
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
printf("Player TextDraw ID %d", playertextid);
if(playertextid == xex[playerid])
{
PlayerTextDrawHide(playerid, stats[playerid]);
PlayerTextDrawHide(playerid, xex[playerid]);
PlayerTextDrawHide(playerid, nothing[playerid]);
}
CMDhowtextdraw(playerid, params[]) { TextDrawHideForPlayer(playerid, stats[playerid]); TextDrawHideForPlayer(playerid, xex[playerid]); SelectTextDraw(playerid, 0x00FF00FF); TextDrawHideForPlayer(playerid, nothing[playerid]); return 1; } |
public OnPlayerClickPlayerTextDraw(playerid, PlayerTextlayertextid) { printf("Player TextDraw ID %d", playertextid); if(playertextid == xex[playerid]) { TextDrawHideForPlayer(playerid, stats[playerid]); TextDrawHideForPlayer(playerid, xex[playerid]); TextDrawHideForPlayer(playerid, nothing[playerid]); } |
F:\Server Backup #1\clients\port_5101\filterscripts\future.pwn(63) : warning 213: tag mismatch
F:\Server Backup #1\clients\port_5101\filterscripts\future.pwn(64) : warning 213: tag mismatch
F:\Server Backup #1\clients\port_5101\filterscripts\future.pwn(66) : warning 213: tag mismatch
F:\Server Backup #1\clients\port_5101\filterscripts\future.pwn(71) : warning 213: tag mismatch
F:\Server Backup #1\clients\port_5101\filterscripts\future.pwn(74) : warning 213: tag mismatch
F:\Server Backup #1\clients\port_5101\filterscripts\future.pwn(75) : warning 213: tag mismatch
F:\Server Backup #1\clients\port_5101\filterscripts\future.pwn(76) : warning 213: tag mismatch
CMD:showtextdraw(playerid, params[])
{
TextDrawHideForPlayer(playerid, stats[playerid]);//63 line
TextDrawHideForPlayer(playerid, xex[playerid]);//64 line
SelectTextDraw(playerid, 0x00FF00FF);
TextDrawHideForPlayer(playerid, nothing[playerid]);//66 line
return 1;
}
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
printf("Player TextDraw ID %d", playertextid);//71 line
if(playertextid == xex[playerid])
{
TextDrawHideForPlayer(playerid, stats[playerid]);//74 line
TextDrawHideForPlayer(playerid, xex[playerid]);//75 line
TextDrawHideForPlayer(playerid, nothing[playerid]);//76 line
}
return 1;
}
printf("playertextid: %d - xex: %d",playertextid,xex[playerid]);
if(playertextid == xex[playerid])
{
PlayerTextDrawHide(playerid, stats[playerid]);
PlayerTextDrawHide(playerid, xex[playerid]);
PlayerTextDrawHide(playerid, nothing[playerid]);
}
print("Callback OnPlayerClickPlayerTextDraw called");