10.11.2010, 01:52
Quote:
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; } Код:
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; } Код:
TextDrawShowForPlayer(TextDraw0[playerid]); and made a public playertextdraw But i have no clue why it did not show up unless i wrote it wrong or forgot something |