10.07.2018, 12:20
I got 3 textdraws with TDE, im putting it in a gm and it's showing just the first textdraw...
Код:
new Text:TDEditor_TD[3]; public OnGameModeInit() { TDEditor_TD[0] = TextDrawCreate(0.922417, 313.083251, "Romania"); TextDrawLetterSize(TDEditor_TD[0], 0.629997, 2.589998); TextDrawAlignment(TDEditor_TD[0], 1); TextDrawColor(TDEditor_TD[0], -620493057); TextDrawSetShadow(TDEditor_TD[0], -114); TextDrawSetOutline(TDEditor_TD[0], 1); TextDrawBackgroundColor(TDEditor_TD[0], 255); TextDrawFont(TDEditor_TD[0], 0); TextDrawSetProportional(TDEditor_TD[0], 1); TextDrawSetShadow(TDEditor_TD[0], -114); TDEditor_TD[1] = TextDrawCreate(69.189483, 314.333374, "Stunt"); TextDrawLetterSize(TDEditor_TD[1], 0.627232, 2.358334); TextDrawAlignment(TDEditor_TD[1], 1); TextDrawColor(TDEditor_TD[1], -318832385); TextDrawSetShadow(TDEditor_TD[1], 0); TextDrawSetOutline(TDEditor_TD[1], 1); TextDrawBackgroundColor(TDEditor_TD[1], 255); TextDrawFont(TDEditor_TD[1], 0); TextDrawSetProportional(TDEditor_TD[1], 1); TextDrawSetShadow(TDEditor_TD[1], 0); TDEditor_TD[2] = TextDrawCreate(116.852722, 313.500091, "Vers"); TextDrawLetterSize(TDEditor_TD[2], 0.727027, 2.521665); TextDrawAlignment(TDEditor_TD[2], 1); TextDrawColor(TDEditor_TD[2], 57087); TextDrawSetShadow(TDEditor_TD[2], 0); TextDrawSetOutline(TDEditor_TD[2], 1); TextDrawBackgroundColor(TDEditor_TD[2], 255); TextDrawFont(TDEditor_TD[2], 0); TextDrawSetProportional(TDEditor_TD[2], 1); TextDrawSetShadow(TDEditor_TD[2], 0); return 1; } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, TDEditor_TD[playerid]); return 1; } public OnPlayerDisconnect(playerid) { TextDrawHideForAll(TDEditor_TD[playerid]); TextDrawDestroy(TDEditor_TD[playerid]); return 1; }