23.08.2011, 18:02
Certo, criei um loop no OnGameModeInit e botei as TextDraws:
E deu os seguintes erros:
Alguem?
pawn Код:
Velocimetro0[i] = TextDrawCreate(635.000000, 266.000000, "_");
TextDrawBackgroundColor(Velocimetro0[i], 255);
TextDrawFont(Velocimetro0[i], 1);
TextDrawLetterSize(Velocimetro0[i], 1.000000, 10.000002);
TextDrawColor(Velocimetro0[i], -1);
TextDrawSetOutline(Velocimetro0[i], 0);
TextDrawSetProportional(Velocimetro0[i], 1);
TextDrawSetShadow(Velocimetro0[i], 1);
TextDrawUseBox(Velocimetro0[i], 1);
TextDrawBoxColor(Velocimetro0[i], 799);
TextDrawTextSize(Velocimetro0[i], 475.000000, 5.000000);
Velocimetro1[i] = TextDrawCreate(478.000000, 264.000000, "Velocidade: --");
TextDrawBackgroundColor(Velocimetro1[i], 255);
TextDrawFont(Velocimetro1[i], 1);
TextDrawLetterSize(Velocimetro1[i], 0.419999, 1.500000);
TextDrawColor(Velocimetro1[i], -16776961);
TextDrawSetOutline(Velocimetro1[i], 0);
TextDrawSetProportional(Velocimetro1[i], 1);
TextDrawSetShadow(Velocimetro1[i], 1);
Velocimetro2[i] = TextDrawCreate(478.000000, 289.000000, "Veiculo: --");
TextDrawBackgroundColor(Velocimetro2[i], 255);
TextDrawFont(Velocimetro2[i], 1);
TextDrawLetterSize(Velocimetro2[i], 0.419999, 1.500000);
TextDrawColor(Velocimetro2[i], 16711935);
TextDrawSetOutline(Velocimetro2[i], 0);
TextDrawSetProportional(Velocimetro2[i], 1);
TextDrawSetShadow(Velocimetro2[i], 1);
Velocimetro3[i] = TextDrawCreate(478.000000, 305.000000, "Localizacao: --");
TextDrawBackgroundColor(Velocimetro3[i], 255);
TextDrawFont(Velocimetro3[i], 1);
TextDrawLetterSize(Velocimetro3[i], 0.419999, 1.500000);
TextDrawColor(Velocimetro3[i], -1);
TextDrawSetOutline(Velocimetro3[i], 0);
TextDrawSetProportional(Velocimetro3[i], 1);
TextDrawSetShadow(Velocimetro3[i], 1);
Velocimetro4[i] = TextDrawCreate(478.000000, 319.000000, "Lataria: --");
TextDrawBackgroundColor(Velocimetro4[i], 255);
TextDrawFont(Velocimetro4[i], 1);
TextDrawLetterSize(Velocimetro4[i], 0.419999, 1.500000);
TextDrawColor(Velocimetro4[i], 65535);
TextDrawSetOutline(Velocimetro4[i], 0);
TextDrawSetProportional(Velocimetro4[i], 1);
TextDrawSetShadow(Velocimetro4[i], 1);
Velocimetro5[i] = TextDrawCreate(477.000000, 334.000000, "Combustivel: --");
TextDrawBackgroundColor(Velocimetro5[i], 255);
TextDrawFont(Velocimetro5[i], 1);
TextDrawLetterSize(Velocimetro5[i], 0.419999, 1.500000);
TextDrawColor(Velocimetro5[i], -65281);
TextDrawSetOutline(Velocimetro5[i], 0);
TextDrawSetProportional(Velocimetro5[i], 1);
TextDrawSetShadow(Velocimetro5[i], 1);
Velocimetro6[i] = TextDrawCreate(635.000000, 266.000000, "_");
TextDrawBackgroundColor(Velocimetro6[i], 255);
TextDrawFont(Velocimetro6[i], 1);
TextDrawLetterSize(Velocimetro6[i], 1.000000, 10.000002);
TextDrawColor(Velocimetro6[i], -1);
TextDrawSetOutline(Velocimetro6[i], 0);
TextDrawSetProportional(Velocimetro6[i], 1);
TextDrawSetShadow(Velocimetro6[i], 1);
TextDrawUseBox(Velocimetro6[i], 1);
TextDrawBoxColor(Velocimetro6[i], 799);
TextDrawTextSize(Velocimetro6[i], 475.000000, 5.000000);
Velocimetro7[i] = TextDrawCreate(635.000000, 266.000000, "_");
TextDrawBackgroundColor(Velocimetro7[i], 255);
TextDrawFont(Velocimetro7[i], 1);
TextDrawLetterSize(Velocimetro7[i], 1.000000, 10.000002);
TextDrawColor(Velocimetro7[i], -1);
TextDrawSetOutline(Velocimetro7[i], 0);
TextDrawSetProportional(Velocimetro7[i], 1);
TextDrawSetShadow(Velocimetro7[i], 1);
TextDrawUseBox(Velocimetro7[i], 1);
TextDrawBoxColor(Velocimetro7[i], 799);
TextDrawTextSize(Velocimetro7[i], 475.000000, 5.000000);
Код:
(690) error: 028: invalid subscript (not an array or too many subscripts): "Velocimetro0" (690) warning: 215: expression has no effect (690) error: 001: expected token: ";", but found "]" (690) error: 029: invalid expression, assumed zero (690) error fatal: 107: too many error messages on one line