[Ajuda] Erro aqui me ajudem =(
#1

Eu queria fazer um textdraw que muda-se de 5 em 5 segundos

Entгo pesquisei achei o tutorial segui certinho mas nao deu! vi 3 tutos fiz os 3 e nгo deu|


pawn Код:
forward RandomMessage();
pawn Код:
new Text:randommsg;
pawn Код:
SetTimer("RandomMessage",8000,1);
pawn Код:
randommsg = TextDrawCreate(1.000000,435.000000," ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                ~r~єє Versao ~w~2.5 ~r~beta єє ~<~~<~~<~");
        TextDrawUseBox(randommsg,1);
        TextDrawBoxColor(randommsg,0x00000066);
        TextDrawTextSize(randommsg,641.000000,0.000000);
        TextDrawAlignment(randommsg,0);
        TextDrawBackgroundColor(randommsg,0x000000ff);
        TextDrawFont(randommsg,3);
        TextDrawLetterSize(randommsg,0.499999,1.300000);
        TextDrawColor(randommsg,0xffffffff);
        TextDrawSetOutline(randommsg,1);
        TextDrawSetProportional(randommsg,1);
        TextDrawSetShadow(randommsg,1);

pawn Код:
public RandomMessage()
{
        TextDrawSetString(randommsg, RandomMessages[random(sizeof(RandomMessages))]);
        return 1;
}
pawn Код:
new RandomMessages[][] = //linha do erro e estб
{
    " ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                 ~r~єє Novidades te esperamєє ~<~~<~~<~",
    " ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                ~r~єє Versao ~w~2.5 ~r~beta єє ~<~~<~~<~",
    " ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                ~r~єє Novidades te esperamєє ~<~~<~~<~",
    " ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                ~r~єє Versao ~w~2.5 ~r~beta єє ~<~~<~~<~"
// You can define more messages, but make sure you have , everywhere, except at the last message
};

Erros


C:\Users\Mrtheandrezinho\Desktop\BHS - Cуpia\BHS - Oficial\gamemodes\BHS.pwn(52713) : error 017: undefined symbol "RandomMessages"
C:\Users\Mrtheandrezinho\Desktop\BHS - Cуpia\BHS - Oficial\gamemodes\BHS.pwn(52713) : error 017: undefined symbol "RandomMessages"
C:\Users\Mrtheandrezinho\Desktop\BHS - Cуpia\BHS - Oficial\gamemodes\BHS.pwn(52713) : error 029: invalid expression, assumed zero
C:\Users\Mrtheandrezinho\Desktop\BHS - Cуpia\BHS - Oficial\gamemodes\BHS.pwn(52713) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

pawn Код:
new Text:randommsg;

new RandomMessages[][] = //linha do erro e estб
{
    " ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                 ~r~єє Novidades te esperamєє ~<~~<~~<~",
    " ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                ~r~єє Versao ~w~2.5 ~r~beta єє ~<~~<~~<~",
    " ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                ~r~єє Novidades te esperamєє ~<~~<~~<~",
    " ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                ~r~єє Versao ~w~2.5 ~r~beta єє ~<~~<~~<~"
};

public OnGameModeInit()
{
       
        randommsg = TextDrawCreate(1.000000,435.000000," ~b~~>~~>~~>~ єє Brasil ~w~Hard ~b~Score єє~w~                ~r~єє Versao ~w~2.5 ~r~beta єє ~<~~<~~<~");
        TextDrawUseBox(randommsg,1);
        TextDrawBoxColor(randommsg,0x00000066);
        TextDrawTextSize(randommsg,641.000000,0.000000);
        TextDrawAlignment(randommsg,0);
        TextDrawBackgroundColor(randommsg,0x000000ff);
        TextDrawFont(randommsg,3);
        TextDrawLetterSize(randommsg,0.499999,1.300000);
        TextDrawColor(randommsg,0xffffffff);
        TextDrawSetOutline(randommsg,1);
        TextDrawSetProportional(randommsg,1);
        TextDrawSetShadow(randommsg,1);
        //SetTimer("RandomMessage",8000,1);  aqui sera em 8 segundos .
        SetTimer("RandomMessage",5000,1); // aqui sera em 5 segundos .
        return 1;
}

forward RandomMessage();
public RandomMessage()
{
        TextDrawSetString(randommsg, RandomMessages[random(sizeof(RandomMessages))]);
        return 1;
}
nao tem nada errado e voзe que usou as funзoes nos locais errados.
Reply
#3

Cara muito obrigado pela ajuda entгo era o settimer nй hum .. obrigado +REP

Cara so deu 1 waring consegue me ajudar?

C:\Users\Mrtheandrezinho\Desktop\BHS - Cуpia\BHS - Oficial\gamemodes\BHS.pwn(52736) : warning 203: symbol is never used: "forum"


pawn Код:
A linha do erro e inesxistente =S
Reply
#4

Consertado de tanto eu quebrar cabeca tentei

pawn Код:
#pragma unused forum
ashahshasui conseguiiii uhu

Agradecimentos a: Q.I "Unico que me ajudou mt obrigado se pude-se te daria mt mais rep que 1 "


______________________

@Close Aqui
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)