SA-MP Forums Archive
[Ajuda] [AJUDA] Erro ao compilar - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] [AJUDA] Erro ao compilar (/showthread.php?tid=401626)



[AJUDA] Erro ao compilar - maluco88 - 23.12.2012

Erros:
Код:
C:\Users\Corei3\Desktop\testepl.pwn(507) : error 028: invalid subscript (not an array or too many subscripts): "Placar"
C:\Users\Corei3\Desktop\testepl.pwn(507) : warning 215: expression has no effect
C:\Users\Corei3\Desktop\testepl.pwn(507) : error 001: expected token: ";", but found "]"
C:\Users\Corei3\Desktop\testepl.pwn(507) : error 029: invalid expression, assumed zero
C:\Users\Corei3\Desktop\testepl.pwn(507) : fatal error 107: too many error messages on one line
Cуdigo:
PHP код:
     Placar[0] = TextDrawCreate(280.0000005.000000"- ~y~Placar -");
    
TextDrawBackgroundColor(Placar[0], 255);
    
TextDrawFont(Placar[0], 3);
    
TextDrawLetterSize(Placar[0], 0.5000001.200000);
    
TextDrawColor(Placar[0], -1);
    
TextDrawSetOutline(Placar[0], 1);
    
TextDrawSetProportional(Placar[0], 1);
    
Placar[1] = TextDrawCreate(265.00000020.000000"~b~MAN ~y~ ~w~X ~y~ ~r~VIS");
    
TextDrawBackgroundColor(Placar[1], 255);
    
TextDrawFont(Placar[1], 3);
    
TextDrawLetterSize(Placar[1], 0.5000001.200000);
    
TextDrawColor(Placar[1], -1);
    
TextDrawSetOutline(Placar[1], 1);
    
TextDrawSetProportional(Placar[1], 1); 
Linha erro:
Код:
 	Placar[0] = TextDrawCreate(280.000000, 5.000000, "- ~y~Placar -");
Alguйm poder me ajudar fico grato


Respuesta: [AJUDA] Erro ao compilar - Pedro Pawno - 23.12.2012

Tente:
pawn Код:
TextDrawBackgroundColor(Placar[0], 255);
    TextDrawFont(Placar[0], 3);
    TextDrawLetterSize(Placar[0], 0.500000, 1.200000);
    TextDrawColor(Placar[0], -1);
    TextDrawSetOutline(Placar[0], 1);
    TextDrawSetProportional(Placar[0], 1);
    Placar[1] = TextDrawCreate(265.000000, 20.000000, "~b~MAN ~y~ ~w~X ~y~ ~r~VIS");
    Placar[0] = TextDrawCreate(280.000000, 5.000000, "- ~y~Placar -");
    TextDrawBackgroundColor(Placar[1], 255);
    TextDrawFont(Placar[1], 3);
    TextDrawLetterSize(Placar[1], 0.500000, 1.200000);
    TextDrawColor(Placar[1], -1);
    TextDrawSetOutline(Placar[1], 1);
    TextDrawSetProportional(Placar[1], 1);



Re: [AJUDA] Erro ao compilar - FeelLikeASir_ - 23.12.2012

new Text: Placar[2];


Re: Respuesta: [AJUDA] Erro ao compilar - maluco88 - 23.12.2012

Quote:
Originally Posted by Pedro Pawno
Посмотреть сообщение
Tente:
pawn Код:
TextDrawBackgroundColor(Placar[0], 255);
    TextDrawFont(Placar[0], 3);
    TextDrawLetterSize(Placar[0], 0.500000, 1.200000);
    TextDrawColor(Placar[0], -1);
    TextDrawSetOutline(Placar[0], 1);
    TextDrawSetProportional(Placar[0], 1);
    Placar[1] = TextDrawCreate(265.000000, 20.000000, "~b~MAN ~y~ ~w~X ~y~ ~r~VIS");
    Placar[0] = TextDrawCreate(280.000000, 5.000000, "- ~y~Placar -");
    TextDrawBackgroundColor(Placar[1], 255);
    TextDrawFont(Placar[1], 3);
    TextDrawLetterSize(Placar[1], 0.500000, 1.200000);
    TextDrawColor(Placar[1], -1);
    TextDrawSetOutline(Placar[1], 1);
    TextDrawSetProportional(Placar[1], 1);
testando.
Nгo mudo nada.


Respuesta: [AJUDA] Erro ao compilar - Pedro Pawno - 23.12.2012

cara, tem como mandar, o cуdigo enteiro, para mim testar aqui.
assim fico meio sem noзгo.

se poder poste a public e os componentes (se tiver).


Re: [AJUDA] Erro ao compilar - maluco88 - 23.12.2012

Conseguir resolver, jб tinha uma definiзгo para Placar, e quando eu colocava new Text: Placar[2];, nгo funcionava, ai eu deletei a outra definiзгo que tinha para Placar e coloquei new Text: Placar[2];
funciono.