What's the problem with this? :|
#1

I made a textdraws, that shows your stats, and stuff.. but it only seems to work with ID 0..

On top:
pawn Код:
new Text:tBarra[6][MAX_PLAYERS];
OnGameModeExit:
pawn Код:
for(new x = 0; x < 6; x++)
{
    foreach(Player, i)
    {
        TextDrawDestroy(tBarra[x][i]);
    }
}
OnPlayerConnect:
pawn Код:
//Barra abajo
tBarra[0][playerid] = TextDrawCreate(149.000000, 427.000000, "Clase:");
tBarra[1][playerid] = TextDrawCreate(539.000000, 427.000000, "Score:");
tBarra[2][playerid] = TextDrawCreate(262.000000, 427.000000, "Rango:");
tBarra[3][playerid] = TextDrawCreate(447.000000, 427.000000, "Muertes:");
tBarra[4][playerid] = TextDrawCreate(345.000000, 427.000000, "Matados:");
tBarra[5][playerid] = TextDrawCreate(3.000000, 427.000000, "Equipo:");
for(new x = 0; x < 6; x++)
{
    TextDrawFont(tBarra[x][playerid], 1);
    TextDrawLetterSize(tBarra[x][playerid], 0.350000, 1.400000);
    TextDrawColor(tBarra[x][playerid], COLOR_WHITE);
    TextDrawSetOutline(tBarra[x][playerid], 1);
}
for(new x = 0; x < 6; x++) TextDrawShowForPlayer(playerid, tBarra[x][playerid]);
OnPlayerDisconnect:
pawn Код:
for(new x = 0; x < 6; x++) TextDrawDestroy(tBarra[x][playerid]);
Thats it.. I don't see anything wrong...
Thanks.
Reply


Messages In This Thread
What's the problem with this? :| - by The_Moddler - 22.09.2010, 23:18
Re: What's the problem with this? :| - by ScottCFR - 22.09.2010, 23:32
Respuesta: Re: What's the problem with this? :| - by MrDeath537 - 22.09.2010, 23:37
Re: What's the problem with this? :| - by ScottCFR - 23.09.2010, 00:09
Re: What's the problem with this? :| - by Toni - 23.09.2010, 00:17
Re: What's the problem with this? :| - by The_Moddler - 23.09.2010, 16:45
Re: What's the problem with this? :| - by The_Moddler - 23.09.2010, 16:54
Re: What's the problem with this? :| - by Mike_Peterson - 23.09.2010, 16:59
Re: What's the problem with this? :| - by The_Moddler - 23.09.2010, 17:01
Re: What's the problem with this? :| - by The_Moddler - 24.09.2010, 11:54

Forum Jump:


Users browsing this thread: 1 Guest(s)