TextDraw doesn't appear
#1

The following Code shouldn't be right at one part I can't detect ...

Код:
public BestPlayerTimer()
{
new LastBestPlayer;
for(new i = 0; i < MAX_PLAYERS; i++)
{
for(new j = 0; j < MAX_PLAYERS; j++)
{
if(IsPlayerConnected(i) && IsPlayerConnected(j))
{
//-------------------------GunGame----------------------------------------------------
if(IsInGunGame[i] && IsInGunGame[j])
{
if(KillScore[i] > KillScore[j])
{
new String[100];
new String2[100];

LastBestPlayer = i;

RanksRemaining[j] = rank[i] - rank[j];
RanksLeading[i] = rank[i] - rank[j];

format(String, sizeof(String), "You are %d Rank(s) behind the Leader!", RanksRemaining[j]);
RRemaining[j] = TextDrawCreate(340.0,380.0, String);
TextDrawColor(RRemaining[j],COLOR_YELLOW);
TextDrawFont(RRemaining[j],2);
TextDrawSetProportional(RRemaining[j],1);
TextDrawSetShadow(RRemaining[j],1);
TextDrawShowForPlayer(j, RRemaining[j]);
TextDrawHideForPlayer(j, RLeading[j]);
TextDrawHideForPlayer(j, NRemaining[j]);

format(String2, sizeof(String2), "You are Leading with %d Rank(s)!", RanksLeading[i]);
RLeading[i] = TextDrawCreate(340.0,380.0, String2);
TextDrawShowForPlayer(i, RLeading[i]);
TextDrawHideForPlayer(i, RRemaining[i]);
TextDrawHideForPlayer(i,NRemaining[i]);

if((i++) == 1)
{
NRemaining[i] = TextDrawCreate(340.0,380.0, "You are 0 Rank(s) behind the Leader");
TextDrawColor(NRemaining[i],COLOR_YELLOW);
TextDrawFont(NRemaining[i],2);
TextDrawSetProportional(NRemaining[i],1);
TextDrawSetShadow(NRemaining[i],1);
TextDrawShowForPlayer(i, NRemaining[i]);

TextDrawHideForPlayer(i, RRemaining[i]);
TextDrawHideForPlayer(i, RLeading[i]);
}
}
}
//------------------------------------------------------------------------
}
}
}
}
Pawno doesn't show Errors.

Bearfist
Reply


Messages In This Thread
TextDraw doesn't appear - by Bearfist - 31.08.2011, 20:01
Re: TextDraw doesn't appear - by Swyft™ - 31.08.2011, 21:16
Re: TextDraw doesn't appear - by Bearfist - 01.09.2011, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)