[Ayuda] For...
#1

Buenas a Todos, Kiero Hacer Un For para los TextDrawShowForPlayer, para no colocar todas las lineas de cada id de los textdraw, hice esto pero no me funciona, Haber si alguien me podria ayudar :S.

pawn Код:
new Text:IdTextdraw[MAX_PLAYERS][11];
for(new i = 1; i < 10; i++)
{
    TextDrawShowForPlayer(playerid, IdTextdraw[playerid][i]);
}
Desde Ya Muchas Gracias.
Reply
#2

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
   {
    TextDrawShowForPlayer(i, Nobre de tu textDraw);
    }
Reply
#3

Quote:
Originally Posted by vampirmd
Посмотреть сообщение
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
   {
    TextDrawShowForPlayer(i, Nobre de tu textDraw);
    }
no, hay estas definiendo playerid, el mio define el numero de la variable del id del textdraw
Reply
#4

deberia de funcionar asн como lo tenйs, nada mбs que el "i" debes igularlo a 0 porque en un array el primer indice es 0 no 1
Reply
#5

Quote:
Originally Posted by Daniel-92
Посмотреть сообщение
deberia de funcionar asн como lo tenйs, nada mбs que el "i" debes igularlo a 0 porque en un array el primer indice es 0 no 1
si, lo hice, y ya habia funcionado, no era el code xD, tenia otra cosa mal y se confundian .

Bueno, Gracias igual .
Reply
#6

Si estбs utilizando 0.3e, utilizб los PlayerTextdraws, no utilicйs los Textdraws globales ya que tienen un corto lнmite.
Los PlayerTextdraws te dejan crear hasta 256 Textdraws por jugador, por lo que serнan 128.000 textdraws PlayerTextdraws para 500 slots. Los Textdraws globales te dejan hacer hasta 2000 Textdraws, por lo tanto solo podrбs hacer 4 para cada jugador en un server de 500 slots.
ONTOPIC:
pawn Код:
new Text:IdTextdraw[MAX_PLAYERS][11];
for(new i;i<11;i++) //Va a contar del 0 al 11
{
    TextDrawShowForPlayer(playerid, IdTextdraw[playerid][i]);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)