[Ajuda] Mensagens Aleatуrias em textdraw
#1

Queria saber como colocar esse sistema de Mensagens Aleatуrias em textdraw:


Grato.
Reply
#2

Isso й TextDraw ? Essas mensagens randфmicas, tem vбrios tutoriais pela net aн de como criar... Basta pesquisar ai na net.
Reply
#3

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.
Reply
#4

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..
Reply
#5

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
Reply
#6

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));
Reply
#7

rs, peguei do meu gm pra fazer uma base. esqueci de mudar umas parada :P
Reply
#8

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.
Reply
#9

qual й a linha 53115 ?
Reply
#10

REMOVED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)