new PlayerText:Piloto[8][MAX_PLAYERS];
CMD:rotas(playerid,params[])
{
TextDrawShowForPlayer(playerid, Piloto[8]);
return 1;
}
|
Nгo deve ser a variбvel correta, pois se fosse nгo daria este erro. Manda os codes onde se encontram "Piloto" para ver ao certo.
Mas tenta deixar sem o '[8]' (Piloto apenas) e tenta recompilar |
Piloto[1][playerid] = CreatePlayerTextDraw(playerid, 230.400009, 132.906570, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Piloto[1][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Piloto[1][playerid], 167.999984, 232.959991);
PlayerTextDrawAlignment(playerid, Piloto[1][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[1][playerid], 255);
PlayerTextDrawSetShadow(playerid, Piloto[1][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[1][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Piloto[1][playerid], -16776961);
PlayerTextDrawFont(playerid, Piloto[1][playerid], 4);
|
Vocк mandou do Piloto[1], mesmo assim, quero ver TODAS!
Vocк definiu no topo: new Text:Piloto[8]; |
Piloto[0][playerid] = CreatePlayerTextDraw(playerid, 410.000122, 124.699951, "usebox");
PlayerTextDrawLetterSize(playerid, Piloto[0][playerid], 0.000000, 27.635925);
PlayerTextDrawTextSize(playerid, Piloto[0][playerid], 216.400009, 0.000000);
PlayerTextDrawAlignment(playerid, Piloto[0][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[0][playerid], 0);
PlayerTextDrawUseBox(playerid, Piloto[0][playerid], true);
PlayerTextDrawBoxColor(playerid, Piloto[0][playerid], -1);
PlayerTextDrawSetShadow(playerid, Piloto[0][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[0][playerid], 0);
PlayerTextDrawFont(playerid, Piloto[0][playerid], 0);
Piloto[1][playerid] = CreatePlayerTextDraw(playerid, 230.400009, 132.906570, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Piloto[1][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Piloto[1][playerid], 167.999984, 232.959991);
PlayerTextDrawAlignment(playerid, Piloto[1][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[1][playerid], 255);
PlayerTextDrawSetShadow(playerid, Piloto[1][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[1][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Piloto[1][playerid], -16776961);
PlayerTextDrawFont(playerid, Piloto[1][playerid], 4);
Piloto[2][playerid] = CreatePlayerTextDraw(playerid, 244.800079, 122.453262, "Rotas Disponiveis");
PlayerTextDrawLetterSize(playerid, Piloto[2][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Piloto[2][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[2][playerid], -1);
PlayerTextDrawSetShadow(playerid, Piloto[2][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[2][playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Piloto[2][playerid], 51);
PlayerTextDrawFont(playerid, Piloto[2][playerid], 3);
PlayerTextDrawSetProportional(playerid, Piloto[2][playerid], 1);
Piloto[3][playerid] = CreatePlayerTextDraw(playerid, 264.799774, 148.586654, "LOS SANTOS");
PlayerTextDrawLetterSize(playerid, Piloto[3][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Piloto[3][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[3][playerid], -1);
PlayerTextDrawSetShadow(playerid, Piloto[3][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[3][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Piloto[3][playerid], 51);
PlayerTextDrawFont(playerid, Piloto[3][playerid], 1);
PlayerTextDrawSetProportional(playerid, Piloto[3][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Piloto[3][playerid], true);
Piloto[4][playerid] = CreatePlayerTextDraw(playerid, 264.799865, 190.399993, "SAN FIERRO");
PlayerTextDrawLetterSize(playerid, Piloto[4][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Piloto[4][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[4][playerid], -1);
PlayerTextDrawSetShadow(playerid, Piloto[4][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[4][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, Piloto[4][playerid], 51);
PlayerTextDrawFont(playerid, Piloto[4][playerid], 1);
PlayerTextDrawSetProportional(playerid, Piloto[4][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Piloto[4][playerid], true);
Piloto[5][playerid] = CreatePlayerTextDraw(playerid, 258.400146, 235.946578, "LAS VENTURAS");
PlayerTextDrawLetterSize(playerid, Piloto[5][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Piloto[5][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[5][playerid], -1);
PlayerTextDrawSetShadow(playerid, Piloto[5][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[5][playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Piloto[5][playerid], 51);
PlayerTextDrawFont(playerid, Piloto[5][playerid], 1);
PlayerTextDrawSetProportional(playerid, Piloto[5][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Piloto[5][playerid], true);
Piloto[6][playerid] = CreatePlayerTextDraw(playerid, 236.800125, 276.266632, "AERO ABANDONADO");
PlayerTextDrawLetterSize(playerid, Piloto[6][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Piloto[6][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[6][playerid], -1);
PlayerTextDrawSetShadow(playerid, Piloto[6][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[6][playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Piloto[6][playerid], 51);
PlayerTextDrawFont(playerid, Piloto[6][playerid], 1);
PlayerTextDrawSetProportional(playerid, Piloto[6][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Piloto[6][playerid], true);
Piloto[7][playerid] = CreatePlayerTextDraw(playerid, 294.400054, 336.746704, "SAIR");
PlayerTextDrawLetterSize(playerid, Piloto[7][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Piloto[7][playerid], 1);
PlayerTextDrawColor(playerid, Piloto[7][playerid], -1);
PlayerTextDrawSetShadow(playerid, Piloto[7][playerid], 0);
PlayerTextDrawSetOutline(playerid, Piloto[7][playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Piloto[7][playerid], 51);
PlayerTextDrawFont(playerid, Piloto[7][playerid], 1);
PlayerTextDrawSetProportional(playerid, Piloto[7][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Piloto[7][playerid], true);
|
TextDrawShowForPlayer(playerid, Piloto[0]); TextDrawShowForPlayer(playerid, Piloto[1]); TextDrawShowForPlayer(playerid, Piloto[2]); TextDrawShowForPlayer(playerid, Piloto[3]); TextDrawShowForPlayer(playerid, Piloto[4]); TextDrawShowForPlayer(playerid, Piloto[5]); TextDrawShowForPlayer(playerid, Piloto[6]); TextDrawShowForPlayer(playerid, Piloto[7]); |
|
Descobri, vc definiu o Piloto[8] na sua variavel... NГO EXISTE! existe apenas atй o 7.
Explicaзгo: pela sua lуgica, vc quer mostrar (show) TODAS de uma vez, mas nгo й o correto, vc deve: remova akela linha Piloto[8] e coloque essas no lugar! ENJOY XD |
|
Vc removeu a linha Piloto[8] e colocou essas no lugar?
Coloque aki o code de como vc adicionou e onde adicionou... |
CMD:rotas(playerid,params[])
{
TextDrawShowForPlayer(playerid, Piloto[0]);
TextDrawShowForPlayer(playerid, Piloto[1]);
TextDrawShowForPlayer(playerid, Piloto[2]);
TextDrawShowForPlayer(playerid, Piloto[3]);
TextDrawShowForPlayer(playerid, Piloto[4]);
TextDrawShowForPlayer(playerid, Piloto[5]);
TextDrawShowForPlayer(playerid, Piloto[6]);
TextDrawShowForPlayer(playerid, Piloto[7]);
return 1;
}
|
new PlayerText:Piloto[8][MAX_PLAYERS]; |
|
new PlayerText:Piloto[8]; |
|
Piloto[0][playerid] = CreatePlayerTextDraw(playerid, 410.000122, 124.699951, "usebox"); PlayerTextDrawLetterSize(playerid, Piloto[0][playerid], 0.000000, 27.635925); PlayerTextDrawTextSize(playerid, Piloto[0][playerid], 216.400009, 0.000000); PlayerTextDrawAlignment(playerid, Piloto[0][playerid], 1); PlayerTextDrawColor(playerid, Piloto[0][playerid], 0); PlayerTextDrawUseBox(playerid, Piloto[0][playerid], true); PlayerTextDrawBoxColor(playerid, Piloto[0][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[0][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[0][playerid], 0); PlayerTextDrawFont(playerid, Piloto[0][playerid], 0); Piloto[1][playerid] = CreatePlayerTextDraw(playerid, 230.400009, 132.906570, "LD_SPAC:white"); PlayerTextDrawLetterSize(playerid, Piloto[1][playerid], 0.000000, 0.000000); PlayerTextDrawTextSize(playerid, Piloto[1][playerid], 167.999984, 232.959991); PlayerTextDrawAlignment(playerid, Piloto[1][playerid], 1); PlayerTextDrawColor(playerid, Piloto[1][playerid], 255); PlayerTextDrawSetShadow(playerid, Piloto[1][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[1][playerid], 0); PlayerTextDrawBackgroundColor(playerid, Piloto[1][playerid], -16776961); PlayerTextDrawFont(playerid, Piloto[1][playerid], 4); Piloto[2][playerid] = CreatePlayerTextDraw(playerid, 244.800079, 122.453262, "Rotas Disponiveis"); PlayerTextDrawLetterSize(playerid, Piloto[2][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[2][playerid], 1); PlayerTextDrawColor(playerid, Piloto[2][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[2][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[2][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Piloto[2][playerid], 51); PlayerTextDrawFont(playerid, Piloto[2][playerid], 3); PlayerTextDrawSetProportional(playerid, Piloto[2][playerid], 1); Piloto[3][playerid] = CreatePlayerTextDraw(playerid, 264.799774, 148.586654, "LOS SANTOS"); PlayerTextDrawLetterSize(playerid, Piloto[3][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[3][playerid], 1); PlayerTextDrawColor(playerid, Piloto[3][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[3][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[3][playerid], 0); PlayerTextDrawBackgroundColor(playerid, Piloto[3][playerid], 51); PlayerTextDrawFont(playerid, Piloto[3][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[3][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[3][playerid], true); Piloto[4][playerid] = CreatePlayerTextDraw(playerid, 264.799865, 190.399993, "SAN FIERRO"); PlayerTextDrawLetterSize(playerid, Piloto[4][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[4][playerid], 1); PlayerTextDrawColor(playerid, Piloto[4][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[4][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[4][playerid], 2); PlayerTextDrawBackgroundColor(playerid, Piloto[4][playerid], 51); PlayerTextDrawFont(playerid, Piloto[4][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[4][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[4][playerid], true); Piloto[5][playerid] = CreatePlayerTextDraw(playerid, 258.400146, 235.946578, "LAS VENTURAS"); PlayerTextDrawLetterSize(playerid, Piloto[5][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[5][playerid], 1); PlayerTextDrawColor(playerid, Piloto[5][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[5][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[5][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Piloto[5][playerid], 51); PlayerTextDrawFont(playerid, Piloto[5][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[5][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[5][playerid], true); Piloto[6][playerid] = CreatePlayerTextDraw(playerid, 236.800125, 276.266632, "AERO ABANDONADO"); PlayerTextDrawLetterSize(playerid, Piloto[6][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[6][playerid], 1); PlayerTextDrawColor(playerid, Piloto[6][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[6][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[6][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Piloto[6][playerid], 51); PlayerTextDrawFont(playerid, Piloto[6][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[6][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[6][playerid], true); Piloto[7][playerid] = CreatePlayerTextDraw(playerid, 294.400054, 336.746704, "SAIR"); PlayerTextDrawLetterSize(playerid, Piloto[7][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[7][playerid], 1); PlayerTextDrawColor(playerid, Piloto[7][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[7][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[7][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Piloto[7][playerid], 51); PlayerTextDrawFont(playerid, Piloto[7][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[7][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[7][playerid], true); |
|
Piloto[0] = CreatePlayerTextDraw(playerid, 410.000122, 124.699951, "usebox"); PlayerTextDrawLetterSize(playerid, Piloto[0], 0.000000, 27.635925); PlayerTextDrawTextSize(playerid, Piloto[0], 216.400009, 0.000000); PlayerTextDrawAlignment(playerid, Piloto[0], 1); PlayerTextDrawColor(playerid, Piloto[0], 0); PlayerTextDrawUseBox(playerid, Piloto[0], true); PlayerTextDrawBoxColor(playerid, Piloto[0], -1); PlayerTextDrawSetShadow(playerid, Piloto[0], 0); PlayerTextDrawSetOutline(playerid, Piloto[0], 0); PlayerTextDrawFont(playerid, Piloto[0], 0); Piloto[1] = CreatePlayerTextDraw(playerid, 230.400009, 132.906570, "LD_SPAC:white"); PlayerTextDrawLetterSize(playerid, Piloto[1][playerid], 0.000000, 0.000000); PlayerTextDrawTextSize(playerid, Piloto[1][playerid], 167.999984, 232.959991); PlayerTextDrawAlignment(playerid, Piloto[1][playerid], 1); PlayerTextDrawColor(playerid, Piloto[1][playerid], 255); PlayerTextDrawSetShadow(playerid, Piloto[1][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[1][playerid], 0); PlayerTextDrawBackgroundColor(playerid, Piloto[1][playerid], -16776961); PlayerTextDrawFont(playerid, Piloto[1][playerid], 4); Piloto[2] = CreatePlayerTextDraw(playerid, 244.800079, 122.453262, "Rotas Disponiveis"); PlayerTextDrawLetterSize(playerid, Piloto[2][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[2][playerid], 1); PlayerTextDrawColor(playerid, Piloto[2][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[2][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[2][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Piloto[2][playerid], 51); PlayerTextDrawFont(playerid, Piloto[2][playerid], 3); PlayerTextDrawSetProportional(playerid, Piloto[2][playerid], 1); Piloto[3] = CreatePlayerTextDraw(playerid, 264.799774, 148.586654, "LOS SANTOS"); PlayerTextDrawLetterSize(playerid, Piloto[3][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[3][playerid], 1); PlayerTextDrawColor(playerid, Piloto[3][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[3][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[3][playerid], 0); PlayerTextDrawBackgroundColor(playerid, Piloto[3][playerid], 51); PlayerTextDrawFont(playerid, Piloto[3][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[3][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[3][playerid], true); Piloto[4] = CreatePlayerTextDraw(playerid, 264.799865, 190.399993, "SAN FIERRO"); PlayerTextDrawLetterSize(playerid, Piloto[4][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[4][playerid], 1); PlayerTextDrawColor(playerid, Piloto[4][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[4][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[4][playerid], 2); PlayerTextDrawBackgroundColor(playerid, Piloto[4][playerid], 51); PlayerTextDrawFont(playerid, Piloto[4][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[4][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[4][playerid], true); Piloto[5] = CreatePlayerTextDraw(playerid, 258.400146, 235.946578, "LAS VENTURAS"); PlayerTextDrawLetterSize(playerid, Piloto[5][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[5][playerid], 1); PlayerTextDrawColor(playerid, Piloto[5][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[5][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[5][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Piloto[5][playerid], 51); PlayerTextDrawFont(playerid, Piloto[5][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[5][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[5][playerid], true); Piloto[6] = CreatePlayerTextDraw(playerid, 236.800125, 276.266632, "AERO ABANDONADO"); PlayerTextDrawLetterSize(playerid, Piloto[6][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[6][playerid], 1); PlayerTextDrawColor(playerid, Piloto[6][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[6][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[6][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Piloto[6][playerid], 51); PlayerTextDrawFont(playerid, Piloto[6][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[6][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[6][playerid], true); Piloto[7] = CreatePlayerTextDraw(playerid, 294.400054, 336.746704, "SAIR"); PlayerTextDrawLetterSize(playerid, Piloto[7][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Piloto[7][playerid], 1); PlayerTextDrawColor(playerid, Piloto[7][playerid], -1); PlayerTextDrawSetShadow(playerid, Piloto[7][playerid], 0); PlayerTextDrawSetOutline(playerid, Piloto[7][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Piloto[7][playerid], 51); PlayerTextDrawFont(playerid, Piloto[7][playerid], 1); PlayerTextDrawSetProportional(playerid, Piloto[7][playerid], 1); PlayerTextDrawSetSelectable(playerid, Piloto[7][playerid], true); |