Quote:
Originally Posted by -Rebel Son-
Oh, that's easy! make the text draw, then use a string from there. :P Make the textdraw and ill help you set it up! ![Cheesy](images/smilies/biggrin.png)
|
Okay this what i've done so far but don't appear on the screen
Код:
forward playertextdraw(playerid);
Код:
new Text:Textdraw0[MAX_PLAYERS];
Код:
public playertextdraw(playerid)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
Textdraw0[playerid] = TextDrawCreate(29.000000, 334.000000, name);
TextDrawBackgroundColor(Textdraw0[playerid], 255);
TextDrawFont(Textdraw0[playerid], 1);
TextDrawLetterSize(Textdraw0[playerid], 0.500000, 1.000000);
TextDrawColor(Textdraw0[playerid], 65535);
TextDrawSetOutline(Textdraw0[playerid], 1);
TextDrawSetProportional(Textdraw0[playerid], 1);
TextDrawSetString(Textdraw0[playerid], name);
return 1;
}
And this Under OnPlayerSpawn
Код:
public OnPlayerSpawn(playerid)
{
TogglePlayerClock(playerid, 0);
SetPlayerColor( playerid, COLOR_WHITE );
//SetPlayerInterior(playerid,0);
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid, 1.3173,29.7461,1199.6012);
SetPlayerSkin(playerid, 217);
TextDrawShowForPlayer(playerid,Textdraw0[playerid]);
return 1;
}
I've even added this On Player spawn and Gamemodeinit Still didn't work i'm out of ideals or I'm completely Stupid ??
Код:
TextDrawShowForPlayer(TextDraw0[playerid]);
But i tried 5 different ways still dont appear i just put it back in forward playertextdraw
and made a public playertextdraw But i have no clue why it did not show up unless i wrote it wrong or forgot something