08.03.2016, 22:11
From what I understand, my code is correct and should show, but isn't. I was wondering if anyone could tell me the reason and lend me a hand on fixing the issue.
I did try the textdraw without the MAX_PLAYERS and [playerid] in everything, but that didn't work either!
No errors, the Textdraw just simply will not show.
pawn Код:
new string[128];
format(string, sizeof(string), "Money: $%i", PlayerInfo[playerid][Money]);
MoneyTD[playerid] = TextDrawCreate(153 ,459 , "Money");
TextDrawSetString(MoneyTD[playerid], string);
TextDrawFont(MoneyTD[playerid] , 1);
TextDrawLetterSize(MoneyTD[playerid] , 0.4, 2.8000000000000003);
TextDrawColor(MoneyTD[playerid] , 0xFFFFFFAA);
TextDrawSetOutline(MoneyTD[playerid] , false);
TextDrawSetProportional(MoneyTD[playerid] , true);
TextDrawSetShadow(MoneyTD[playerid] , 1);
//TextDrawUseBox(MoneyTD[playerid], 1);
//TextDrawBoxColor(MoneyTD[playerid], 0x000000AA);
TextDrawShowForPlayer(playerid, MoneyTD[playerid]);
pawn Код:
new Text:MoneyTD[MAX_PLAYERS];
No errors, the Textdraw just simply will not show.