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(playerid, name, sizeof(name));
    
format(tdstring, sizeof(tdstring), "%s(%d)", name, playerid);
    
PlayerTextDrawSetString(playerid, TDEditor_PTD[playerid][0], tdstring); 
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 4.500000, 232.437500, "FlorinFaraon(999)");
    
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.273497, 1.328747);
    
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 689.000000, 0.000000);
    
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
    
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
    
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
    
TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, -35.500000, 235.500000, "");
    
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][1], 152.000000, 105.000000);
    
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
    
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1);
    
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
    
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 5);
    
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 0);
    
PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][1], 0);
    
PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][1], 0.000000, 0.000000, 0.000000, 1.000000);
    
TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][0]);
    
TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][1]);
    return 
1;
}
C:\Users\Calinacho\Desktop\TEST\gamemodes\bare.pwn(47) : warning 213: tag mismatch
C
:\Users\Calinacho\Desktop\TEST\gamemodes\bare.pwn(48) : warning 213: tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c) 1997-2006, ITB 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)