Mensagens Aleatуrias em textdraw -
Ricardo_Rockstar - 09.12.2013
Queria saber como colocar esse sistema de Mensagens Aleatуrias em textdraw:
Grato.
Re: Mensagens Aleatуrias em textdraw -
DannielCooper - 09.12.2013
Isso й TextDraw ? Essas mensagens randфmicas, tem vбrios tutoriais pela net aн de como criar... Basta pesquisar ai na net.
Re: Mensagens Aleatуrias em textdraw -
Ricardo_Rockstar - 09.12.2013
Eu nгo disse que essa imagem tinha as mensagens randфmicas em textdraw, queria que me ajudassem a que as mensagens randфmicas ficassem em textdraw.
Se nгo quer ajudar й fбcil, retire-te
Grato.
Re: Mensagens Aleatуrias em textdraw -
DannielCooper - 09.12.2013
Agora entendi... Tenta aн parзa.
pawn Код:
new byDannielCooper[6][128] = {
"by DannielCooper",
"by DannielCooper",
"by DannielCooper",
"by DannielCooper",
"by DannielCooper",
"by DannielCooper"
};
forward byDannielCooper2();
public byDannielCooper2()
{
new dannielstring[28];
new random1 = random(sizeof(Mensagens));
new random2 = random(sizeof(Cores));
for(new i; i<MAX_PLAYERS; i++) {
format(dannielstring, sizeof(dannielstring), "%s", byDannielCooper[1]);
TextDrawCreate(DC[i]);
TextDrawAlignment(DC[i], 2);
TextDrawBackgroundColor(DC[i], 255);
TextDrawFont(DC[i], 1);
TextDrawLetterSize(DC[i], 0.810000, 2.799999);
TextDrawColor(DC[i], -1);
TextDrawSetOutline(DC[i], 1);
TextDrawSetProportional(DC[i], 1);
return 1;
}
Tentai..
Re: Mensagens Aleatуrias em textdraw -
Ricardo_Rockstar - 09.12.2013
pawn Код:
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : error 017: undefined symbol "Mensagens"
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 017: undefined symbol "DC"
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 001: expected token: ";", but found "]"
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : fatal error 107: too many error messages on one line
Re: Mensagens Aleatуrias em textdraw -
Delete_ - 09.12.2013
Quote:
Originally Posted by Ricardo_Rockstar
pawn Код:
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : error 017: undefined symbol "Mensagens" C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : error 029: invalid expression, assumed zero C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : warning 215: expression has no effect C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 017: undefined symbol "DC" C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : warning 215: expression has no effect C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 001: expected token: ";", but found "]" C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 029: invalid expression, assumed zero C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : fatal error 107: too many error messages on one line
|
topo:
pawn Код:
new Text:DC[MAX_PLAYERS];
troque
pawn Код:
new random1 = random(sizeof(Mensagens));
por
pawn Код:
new random1 = random(sizeof(byDannielCooper));
Re: Mensagens Aleatуrias em textdraw -
DannielCooper - 09.12.2013
rs, peguei do meu gm pra fazer uma base. esqueci de mudar umas parada :P
Re: Mensagens Aleatуrias em textdraw -
Ricardo_Rockstar - 10.12.2013
pawn Код:
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53121) : warning 213: tag mismatch
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53121) : warning 202: number of arguments does not match definition
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53121) : warning 202: number of arguments does not match definition
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53132) : error 030: compound statement not closed at the end of file (started at line 53115)
Deu esse pequenino erro rsrsrs
Cumprimentos.
Re: Mensagens Aleatуrias em textdraw -
DannielCooper - 10.12.2013
qual й a linha 53115 ?
Re: Mensagens Aleatуrias em textdraw -
Schocc - 10.12.2013
REMOVED