SA-MP Forums Archive
Por que no me sirve?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Por que no me sirve?? (/showthread.php?tid=416940)



Por que no me sirve?? - Dreyfuz - 18.02.2013

Mi problema es que cuando entro al svr y pongo el comando para que me aparescan los TD solo aparese el primero y los demas no... porque?? Este es el Code:

pawn Код:
tMenu[17][TDC_pos_y] = 130.000000;
    for(new i = 2; i < 7; i++){
    tMenu[i][TDC_pos_y] = tMenu[i][TDC_pos_y]+10.000000;
    Textdraw[i] = TextDrawCreate(177.000000, tMenu[i][TDC_pos_y], "...");
    TextDrawBackgroundColor(Textdraw[i], 255);
    TextDrawFont(Textdraw[i], 1);
    TextDrawLetterSize(Textdraw[i], 0.300000, 1.200000);
    TextDrawColor(Textdraw[i], -1);
    TextDrawSetOutline(Textdraw[i], 0);
    TextDrawSetProportional(Textdraw[i], 1);
    TextDrawSetShadow(Textdraw[i], 1);
    TextDrawSetSelectable(Textdraw[i], 0);}
Si alguien sabe porque no muestra los demas TD, xfa diganme...


Respuesta: Por que no me sirve?? - NeuZz - 18.02.2013

porque tenes que hacerlos aparecer con TextDrawShowForPlayer


Respuesta: Por que no me sirve?? - Dreyfuz - 18.02.2013

Quote:
Originally Posted by NeuZz
Посмотреть сообщение
porque tenes que hacerlos aparecer con TextDrawShowForPlayer
Si los hago aparecer con TextDrawShowForPlayer pero aparecen todas las id menos las que se encuentran dentro del bucle o mejor dicho solo aparece la primera del bucle que es el 2....


Respuesta: Por que no me sirve?? - Parka - 18.02.2013

disculpa mi ignorancia pero solo veo un textdraw creado :S


Respuesta: Por que no me sirve?? - Dreyfuz - 18.02.2013

Quote:
Originally Posted by cesar_******
Посмотреть сообщение
disculpa mi ignorancia pero solo veo un textdraw creado :S
pawn Код:
tMenu[17][TDC_pos_y] = 130.000000;
    for(new i = 2; i < 7; i++){
    tMenu[i][TDC_pos_y] = tMenu[i][TDC_pos_y]+10.000000;
    Textdraw[i] = TextDrawCreate(177.000000, tMenu[i][TDC_pos_y], "...");
    TextDrawBackgroundColor(Textdraw[i], 255);
    TextDrawFont(Textdraw[i], 1);
    TextDrawLetterSize(Textdraw[i], 0.300000, 1.200000);
    TextDrawColor(Textdraw[i], -1);
    TextDrawSetOutline(Textdraw[i], 0);
    TextDrawSetProportional(Textdraw[i], 1);
    TextDrawSetShadow(Textdraw[i], 1);
    TextDrawSetSelectable(Textdraw[i], 0);}
que me quieres desir que el loop no sirve para los TD..?? o que??


Respuesta: Por que no me sirve?? - Dreyfuz - 20.02.2013

Revivo...


Respuesta: Por que no me sirve?? - xSDx - 20.02.2013

tMenu[17][TDC_pos_y] = 130.000000;
for(new i = 2; i < 7; i++)
{
tMenu[i][TDC_pos_y] = tMenu[i][TDC_pos_y]+10.000000;
Textdraw[i] = TextDrawCreate(177.000000, tMenu[i][TDC_pos_y], "...");
TextDrawBackgroundColor(Textdraw[i], 255);
TextDrawFont(Textdraw[i], 1);
TextDrawLetterSize(Textdraw[i], 0.300000, 1.200000);
TextDrawColor(Textdraw[i], -1);
TextDrawSetOutline(Textdraw[i], 0);
TextDrawSetProportional(Textdraw[i], 1);
TextDrawSetShadow(Textdraw[i], 1);
TextDrawSetSelectable(Textdraw[i], 0);
printf("Textdraw creado id: %d",i);
}

ahora dinos cuantos textdraws te imprime en el samp server y que ids son?


Respuesta: Por que no me sirve?? - Dreyfuz - 20.02.2013

Quote:
Originally Posted by xSDx
Посмотреть сообщение
tMenu[17][TDC_pos_y] = 130.000000;
for(new i = 2; i < 7; i++)
{
tMenu[i][TDC_pos_y] = tMenu[i][TDC_pos_y]+10.000000;
Textdraw[i] = TextDrawCreate(177.000000, tMenu[i][TDC_pos_y], "...");
TextDrawBackgroundColor(Textdraw[i], 255);
TextDrawFont(Textdraw[i], 1);
TextDrawLetterSize(Textdraw[i], 0.300000, 1.200000);
TextDrawColor(Textdraw[i], -1);
TextDrawSetOutline(Textdraw[i], 0);
TextDrawSetProportional(Textdraw[i], 1);
TextDrawSetShadow(Textdraw[i], 1);
TextDrawSetSelectable(Textdraw[i], 0);
printf("Textdraw creado id: %d",i);
}

ahora dinos cuantos textdraws te imprime en el samp server y que ids son?
Solo aparece el 2...

osea no se suma.! Que podria ser?? si en el for se suman las i(i++).