17.07.2014, 18:14
Am urmatoarele:
Problema este ca nu imi afiseaza unu sub altu, unul peste altul. Ce as putea face ?
Code:
new Text:TextdrawSuspect[MAX_PLAYERS];
Code:
for(new i=0; i<MAX_PLAYERS; i++)
{
TextdrawSuspect[i] = TextDrawCreate(606.000000, 160.000000, "");
TextDrawAlignment(TextdrawSuspect[i], 3);
TextDrawBackgroundColor(TextdrawSuspect[i], 255);
TextDrawFont(TextdrawSuspect[i], 1);
TextDrawLetterSize(TextdrawSuspect[i], 0.260000, 1.700000);
TextDrawColor(TextdrawSuspect[i], 0xFFFFFFFF);
TextDrawSetOutline(TextdrawSuspect[i], 0);
TextDrawSetProportional(TextdrawSuspect[i], 1);
TextDrawSetShadow(TextdrawSuspect[i], 1);
}
Code:
PUBLIC: TimerPerSecond()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(WantedLevel[i] > 0)
{
new wstring[256];
format(wstring, sizeof(wstring), "[ID:%d] %s - [W%d]~n~", i,PlayerName(i),WantedLevel[i]);
TextDrawSetString(TextdrawSuspect[i],wstring);
}
}
}
}

