Textdraws
#1

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

Reply
#2

Show lines 47 and 48, please.
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)