Text Draw Help
#1

Script
Код HTML:
new string[140];
    TextDraw_Rob = TextDrawCreate(153.000000, 149.000000, "");
    format(string, sizeof(string), "%s.", RPName(playerid));
    TextDrawSetString(TextDraw_Rob,string);
	TextDrawFont(TextDraw_Rob, 0);
	TextDrawLetterSize(TextDraw_Rob, 5.1, 5.1);
	TextDrawColor(TextDraw_Rob, 0xFFFFFFFF);
	TextDrawSetOutline(TextDraw_Rob, 1);
	TextDrawSetProportional(TextDraw_Rob, true);
	TextDrawSetShadow(TextDraw_Rob, 1);
	TextDrawUseBox(TextDraw_Rob, true);
	TextDrawBoxColor(TextDraw_Rob, 0x0D0D0DFF);
	TextDrawTextSize(TextDraw_Rob, 100, 50);
Problem

PHP код:
 error 017undefined symbol "playerid" 
Reply
#2

PHP код:
new playerid;
new 
string[140];
    
TextDraw_Rob TextDrawCreate(153.000000149.000000"");
    
format(stringsizeof(string), "%s."RPName(playerid));
    
TextDrawSetString(TextDraw_Rob,string);
    
TextDrawFont(TextDraw_Rob0);
    
TextDrawLetterSize(TextDraw_Rob5.15.1);
    
TextDrawColor(TextDraw_Rob0xFFFFFFFF);
    
TextDrawSetOutline(TextDraw_Rob1);
    
TextDrawSetProportional(TextDraw_Robtrue);
    
TextDrawSetShadow(TextDraw_Rob1);
    
TextDrawUseBox(TextDraw_Robtrue);
    
TextDrawBoxColor(TextDraw_Rob0x0D0D0DFF);
    
TextDrawTextSize(TextDraw_Rob10050); 
Reply
#3

new playerid?
Reply
#4

Try:

PHP код:
    new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
TextDraw_Rob TextDrawCreate(153.000000149.000000"");
    
TextDrawSetString(TextDraw_Rob,string);
    
TextDrawFont(TextDraw_Rob0);
    
TextDrawLetterSize(TextDraw_Rob5.15.1);
    
TextDrawColor(TextDraw_Rob0xFFFFFFFF);
    
TextDrawSetOutline(TextDraw_Rob1);
    
TextDrawSetProportional(TextDraw_Robtrue);
    
TextDrawSetShadow(TextDraw_Rob1);
    
TextDrawUseBox(TextDraw_Robtrue);
    
TextDrawBoxColor(TextDraw_Rob0x0D0D0DFF);
    
TextDrawTextSize(TextDraw_Rob10050);
    
format(stringsizeof(string), "%s."name); 
Reply
#5

Still same thing
Reply
#6

Use Player textdraws.
Reply
#7

i get alot of errors if i do that one
Reply
#8

did you try new playerid; ?
Reply
#9

Код:
new PlayerText:TextDraw_Rob[MAX_PLAYERS];
This on the top

Код:
        new string[140];
        TextDraw_Rob[playerid] = CreatePlayerTextDraw(153.000000, 149.000000, "");
        format(string, sizeof(string), "%s.", RPName(playerid));
        PlayerTextDrawSetString(TextDraw_Rob[playerid],string);
	PlayerTextDrawFont(TextDraw_Rob[playerid], 0);
	PlayerTextDrawLetterSize(TextDraw_Rob[playerid], 5.1, 5.1);
	PlayerTextDrawFontColor(TextDraw_Rob[playerid], 0xFFFFFFFF);
	PlayerTextDrawSetOutline(TextDraw_Rob[playerid], 1);
	PlayerTextDrawSetProportional(TextDraw_Rob[playerid], true);
	PlayerTextDrawSetShadow(TextDraw_Rob[playerid], 1);
	PlayerTextDrawUseBox(TextDraw_Rob[playerid], true);
	PlayerTextDrawBoxColor(TextDraw_Rob[playerid], 0x0D0D0DFF);
	PlayerTextDrawTextSize(TextDraw_Rob[playerid], 100, 50);
Put those in
Код:
public OnPlayerConnect(playerid)
Код:
public OnPlayerSpawn(playerid)
{
    PlayerTextDrawShow(playerid, TextDraw_Rob[playerid]);
}
Reply
#10

i already did show it somewhere else and i dont need to show it when player is connected
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)