Por que no me sirve??
#1

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...
Reply
#2

porque tenes que hacerlos aparecer con TextDrawShowForPlayer
Reply
#3

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....
Reply
#4

disculpa mi ignorancia pero solo veo un textdraw creado :S
Reply
#5

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??
Reply
#6

Revivo...
Reply
#7

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?
Reply
#8

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++).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)