[Ajuda] em um erro - 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] em um erro (
/showthread.php?tid=301878)
[Ajuda] em um erro -
Osl_Owna - 06.12.2011
pawn Код:
TextGrana
[i
] = TextDrawCreate
(487.000000,
76.000000,
" ");
TextDrawAlignment
(TextGrana
[i
],
0);
TextDrawBackgroundColor
(TextGrana
[i
],0x000000ff
);
TextDrawFont
(TextGrana
[i
],
3);
TextDrawBoxColor
(TextGrana
[i
],0x7CFC00FF
);
TextDrawLetterSize
(TextGrana
[i
],
0.599999,
2.399999);
TextDrawSetOutline
(TextGrana
[i
],
1);
TextDrawSetProportional
(TextGrana
[i
],
1);
TextDrawSetShadow
(TextGrana
[i
],
1);
forum
[i
] = TextDrawCreate
(1,
427,
" ~r~|~y~Forum~w~: http://www.~b~gta~w~.wc~p~.games~w~.com.br~r~| ~w~[~b~[BRA] ~w~World ~p~Games~w~ RPG ~g~versao ~y~1.0~w~]");
TextDrawUseBox
(forum
[i
],
1);
TextDrawBoxColor
(forum
[i
],0x00000066
);
TextDrawSetOutline
(forum
[i
],
1);
TextDrawFont
(forum
[i
],
0);
TextDrawSetProportional
(forum
[i
],
2);
TextDrawAlignment
(forum
[i
],
0);
TextDrawLetterSize
(forum
[i
],
0.400000,
2.000000);
TextDrawSetShadow
(forum
[i
],
1);
}
pawn Код:
C:\Users\Nauan\Desktop\gmbwg\gamemodes\BAC.pwn(61269) : error 010: invalid function or declaration
C:\Users\Nauan\Desktop\gmbwg\gamemodes\BAC.pwn(61279) : error 010: invalid function or declaration
Linha dos Erros
Re: Ajuda aqui em um erro -
StrondA_ - 06.12.2011
Adicione o Loop na public OnGameModeInit, ou coloque desta forma:
pawn Код:
public OnGameModeInit
(}{ for(new i; i
< MAX_PLAYERS;
++i
) { TextGrana
[i
] = TextDrawCreate
(487.000000,
76.000000,
" ");
TextDrawAlignment
(TextGrana
[i
],
0);
TextDrawBackgroundColor
(TextGrana
[i
],0x000000ff
);
TextDrawFont
(TextGrana
[i
],
3);
TextDrawBoxColor
(TextGrana
[i
],0x7CFC00FF
);
TextDrawLetterSize
(TextGrana
[i
],
0.599999,
2.399999);
TextDrawSetOutline
(TextGrana
[i
],
1);
TextDrawSetProportional
(TextGrana
[i
],
1);
TextDrawSetShadow
(TextGrana
[i
],
1);
forum
[i
] = TextDrawCreate
(1,
427,
" ~r~|~y~Forum~w~: http://www.~b~gta~w~.wc~p~.games~w~.com.br~r~| ~w~[~b~[BRA] ~w~World ~p~Games~w~ RPG ~g~versao ~y~1.0~w~]");
TextDrawUseBox
(forum
[i
],
1);
TextDrawBoxColor
(forum
[i
],0x00000066
);
TextDrawSetOutline
(forum
[i
],
1);
TextDrawFont
(forum
[i
],
0);
TextDrawSetProportional
(forum
[i
],
2);
TextDrawAlignment
(forum
[i
],
0);
TextDrawLetterSize
(forum
[i
],
0.400000,
2.000000);
TextDrawSetShadow
(forum
[i
],
1);
} return true;
}
Re: Ajuda aqui em um erro -
Osl_Owna - 06.12.2011
ixi ai deu ums 20 erros
Re: Ajuda aqui em um erro -
StrondA_ - 06.12.2011
Impossнvel, vocк deve estar adicionando errado ao GameMode, apenas coloque o Loop e as chaves, nгo adicionar o retorno ou cria outra callback ¬¬'