SA-MP Forums Archive
Textdraws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraws (/showthread.php?tid=665148)



Textdraws - Calinut200 - 23.03.2019

Help, not showing in game.
PHP Code:
new PlayerText:TDEditor_PTD[MAX_PLAYERS][2];
forward numeskinid(playerid);
public 
numeskinid(playerid)
{
    new 
tdstring[100],name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
format(tdstringsizeof(tdstring), "%s(%d)"nameplayerid);
    
PlayerTextDrawSetString(playeridTDEditor_PTD[playerid][0], tdstring); 
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid4.500000232.437500"FlorinFaraon(999)");
    
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][0], 0.2734971.328747);
    
PlayerTextDrawTextSize(playeridTDEditor_PTD[playerid][0], 689.0000000.000000);
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][0], -1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][0], 255);
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][0], 1);
    
TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, -35.500000235.500000"");
    
PlayerTextDrawTextSize(playeridTDEditor_PTD[playerid][1], 152.000000105.000000);
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][1], 1);
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][1], -1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][1], 0);
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][1], 5);
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][1], 0);
    
PlayerTextDrawSetPreviewModel(playeridTDEditor_PTD[playerid][1], 0);
    
PlayerTextDrawSetPreviewRot(playeridTDEditor_PTD[playerid][1], 0.0000000.0000000.0000001.000000);
    
TextDrawShowForPlayer(playeridTDEditor_PTD[playerid][0]);
    
TextDrawShowForPlayer(playeridTDEditor_PTD[playerid][1]);
    return 
1;
}
C:\Users\Calinacho\Desktop\TEST\gamemodes\bare.pwn(47) : warning 213tag mismatch
C
:\Users\Calinacho\Desktop\TEST\gamemodes\bare.pwn(48) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Warnings




Re: Textdraws - h3x - 23.03.2019

Show lines 47 and 48, please.


Re: Textdraws - Heress - 23.03.2019

TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][0]);
TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][1]);
>>>
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][0]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][1]);