03.04.2012, 13:30
Who can help me? My textdraw is not apearing on screen:
Код:
#include <a_samp> /* ========================================================================== */ new Text:Textdraw0; new Text:Textdraw1; new Text:Textdraw2; new Text:Textdraw3; new Text:Textdraw4; new Text:Textdraw5; new Text:Textdraw6; new Text:Textdraw7; new Text:Textdraw8; new Text:Textdraw9; new Text:Textdraw10; new Text:Textdraw11; /* ========================================================================== */ public OnFilterScriptInit() { Textdraw0 = TextDrawCreate(510.000000, 384.000000, "R"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 0); TextDrawLetterSize(Textdraw0, 0.490000, 1.900000); TextDrawColor(Textdraw0, 257556479); TextDrawSetOutline(Textdraw0, 1); TextDrawSetProportional(Textdraw0, 1); Textdraw1 = TextDrawCreate(523.000000, 381.000000, "e"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 0); TextDrawLetterSize(Textdraw1, 0.490000, 1.900000); TextDrawColor(Textdraw1, 257556479); TextDrawSetOutline(Textdraw1, 1); TextDrawSetProportional(Textdraw1, 1); Textdraw2 = TextDrawCreate(530.000000, 378.000000, "d"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 0); TextDrawLetterSize(Textdraw2, 0.490000, 1.900000); TextDrawColor(Textdraw2, 257556479); TextDrawSetOutline(Textdraw2, 1); TextDrawSetProportional(Textdraw2, 1); Textdraw3 = TextDrawCreate(537.000000, 376.000000, "Co"); TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 0); TextDrawLetterSize(Textdraw3, 0.490000, 1.900000); TextDrawColor(Textdraw3, -65281); TextDrawSetOutline(Textdraw3, 1); TextDrawSetProportional(Textdraw3, 1); Textdraw4 = TextDrawCreate(550.000000, 374.000000, "un"); TextDrawBackgroundColor(Textdraw4, 255); TextDrawFont(Textdraw4, 0); TextDrawLetterSize(Textdraw4, 0.490000, 1.900000); TextDrawColor(Textdraw4, -65281); TextDrawSetOutline(Textdraw4, 1); TextDrawSetProportional(Textdraw4, 1); Textdraw5 = TextDrawCreate(558.000000, 375.000000, "tr"); TextDrawBackgroundColor(Textdraw5, 255); TextDrawFont(Textdraw5, 0); TextDrawLetterSize(Textdraw5, 0.490000, 1.900000); TextDrawColor(Textdraw5, -65281); TextDrawSetOutline(Textdraw5, 1); TextDrawSetProportional(Textdraw5, 1); Textdraw6 = TextDrawCreate(565.000000, 376.000000, "y"); TextDrawBackgroundColor(Textdraw6, 255); TextDrawFont(Textdraw6, 0); TextDrawLetterSize(Textdraw6, 0.490000, 1.900000); TextDrawColor(Textdraw6, -65281); TextDrawSetOutline(Textdraw6, 1); TextDrawSetProportional(Textdraw6, 1); Textdraw7 = TextDrawCreate(571.000000, 378.000000, "Rol"); TextDrawBackgroundColor(Textdraw7, 255); TextDrawFont(Textdraw7, 0); TextDrawLetterSize(Textdraw7, 0.490000, 1.900000); TextDrawColor(Textdraw7, -16776961); TextDrawSetOutline(Textdraw7, 1); TextDrawSetProportional(Textdraw7, 1); Textdraw8 = TextDrawCreate(577.000000, 381.000000, "e"); TextDrawBackgroundColor(Textdraw8, 255); TextDrawFont(Textdraw8, 0); TextDrawLetterSize(Textdraw8, 0.490000, 1.900000); TextDrawColor(Textdraw8, -16776961); TextDrawSetOutline(Textdraw8, 1); TextDrawSetProportional(Textdraw8, 1); Textdraw9 = TextDrawCreate(584.000000, 384.000000, "Play"); TextDrawBackgroundColor(Textdraw9, 255); TextDrawFont(Textdraw9, 0); TextDrawLetterSize(Textdraw9, 0.490000, 1.900000); TextDrawColor(Textdraw9, -16776961); TextDrawSetOutline(Textdraw9, 1); TextDrawSetProportional(Textdraw9, 1); Textdraw10 = TextDrawCreate(500.000000, 401.000000, "ROMANIA"); TextDrawBackgroundColor(Textdraw10, 255); TextDrawFont(Textdraw10, 3); TextDrawLetterSize(Textdraw10, 0.480000, 1.600000); TextDrawColor(Textdraw10, -10288897); TextDrawSetOutline(Textdraw10, 1); TextDrawSetProportional(Textdraw10, 1); Textdraw11 = TextDrawCreate(540.000000, 393.000000, "0.3e"); TextDrawBackgroundColor(Textdraw11, 255); TextDrawFont(Textdraw11, 2); TextDrawLetterSize(Textdraw11, 0.300000, 1.000000); TextDrawColor(Textdraw11, 257556479); TextDrawSetOutline(Textdraw11, 1); TextDrawSetProportional(Textdraw11, 1); for(new i; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { TextDrawShowForPlayer(i, Textdraw0); TextDrawShowForPlayer(i, Textdraw1); TextDrawShowForPlayer(i, Textdraw2); TextDrawShowForPlayer(i, Textdraw3); TextDrawShowForPlayer(i, Textdraw4); TextDrawShowForPlayer(i, Textdraw5); TextDrawShowForPlayer(i, Textdraw6); TextDrawShowForPlayer(i, Textdraw7); TextDrawShowForPlayer(i, Textdraw8); TextDrawShowForPlayer(i, Textdraw9); TextDrawShowForPlayer(i, Textdraw10); TextDrawShowForPlayer(i, Textdraw11); } } return 1; } /* ========================================================================== */ public OnFilterScriptExit() { TextDrawHideForAll(Textdraw0); TextDrawDestroy(Textdraw0); TextDrawHideForAll(Textdraw1); TextDrawDestroy(Textdraw1); TextDrawHideForAll(Textdraw2); TextDrawDestroy(Textdraw2); TextDrawHideForAll(Textdraw3); TextDrawDestroy(Textdraw3); TextDrawHideForAll(Textdraw4); TextDrawDestroy(Textdraw4); TextDrawHideForAll(Textdraw5); TextDrawDestroy(Textdraw5); TextDrawHideForAll(Textdraw6); TextDrawDestroy(Textdraw6); TextDrawHideForAll(Textdraw7); TextDrawDestroy(Textdraw7); TextDrawHideForAll(Textdraw8); TextDrawDestroy(Textdraw8); TextDrawHideForAll(Textdraw9); TextDrawDestroy(Textdraw9); TextDrawHideForAll(Textdraw10); TextDrawDestroy(Textdraw10); TextDrawHideForAll(Textdraw11); TextDrawDestroy(Textdraw11); return 1; } /* ========================================================================== */ public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw2); TextDrawShowForPlayer(playerid, Textdraw3); TextDrawShowForPlayer(playerid, Textdraw4); TextDrawShowForPlayer(playerid, Textdraw5); TextDrawShowForPlayer(playerid, Textdraw6); TextDrawShowForPlayer(playerid, Textdraw7); TextDrawShowForPlayer(playerid, Textdraw8); TextDrawShowForPlayer(playerid, Textdraw9); TextDrawShowForPlayer(playerid, Textdraw10); TextDrawShowForPlayer(playerid, Textdraw11); return 1; } /* ========================================================================== */