[Ajuda] TextDraw
#1

Olб

Estou com o seguinte erro quando vou compilar..

pawn Код:
C:\-------\----------\---------\-------\gamemodes\------.pwn(34) : error 010: invalid function or declaration
C:\-----\------\-----------\------\gamemodes\----.pwn(233) : warning 203: symbol is never used: "Textdraw1"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Linhas do erro:

Topo GM:

pawn Код:
new Text:Textdraw1;

OnGameModeInit

pawn Код:
public OnGameModeInit()
{
AddStaticVehicle(451,1999.3174,-2581.4631,13.1982,0.1176,1,1);
    return 1;
}

Textdraw1 = TextDrawCreate(530.000000, 439.000000, "www");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.159999, 0.700000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
}

Alguйm poderia me ajudar a arrumar esse erro?
Reply
#2

Certifique que:
pawn Код:
new Text:Textdraw1;
Estб no topo corretamente junto com as outras new Text
Reply
#3

onde vocк colocou a Variбvel?
Reply
#4

Tente:
pawn Код:
//Topo
new Text:www;

OnGameModeInit
www = TextDrawCreate(530.000000, 439.000000, "www");
TextDrawBackgroundColor(www, 255);
TextDrawFont(www, 2);
TextDrawLetterSize(www, 0.159999, 0.700000);
TextDrawColor(www, -1);
TextDrawSetOutline(www, 1);
TextDrawSetProportional(www, 1);
}
Reply
#5

continua com o mesmo erro na linha:

pawn Код:
www = TextDrawCreate(530.000000, 439.000000, "www");
erro
pawn Код:
C:-----\gamemodes\----.pwn(34) : error 010: invalid function or declaration
C:\-----------\gamemodes\----.pwn(233) : warning 203: symbol is never used: "www"
Reply
#6

pawn Код:
new Text:Textdraw1;
Tente:
pawn Код:
public OnGameModeInit()
{
AddStaticVehicle(451,1999.3174,-2581.4631,13.1982,0.1176,1,1);
    return 1;
}
{
Textdraw1 = TextDrawCreate(530.000000, 439.000000, "www");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.159999, 0.700000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
}
Reply
#7

Primeiro crie a variбvel do textdraw no topo do seu GM. (Junto com as outras que jб tem)
pawn Код:
new Text:Textdraw1;
depois coloque o textdraw dentro da callback e nгo fora.
pawn Код:
public OnGameModeInit()
{
AddStaticVehicle(451,1999.3174,-2581.4631,13.1982,0.1176,1,1);
//TextDraws (Organizaзгo)
Textdraw1 = TextDrawCreate(530.000000, 439.000000, "www");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.159999, 0.700000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
return 1;
}
Reply
#8

Nгo funcionou, removi esse textdraw do GM estava bugado..

Obrigado a quem tentou me ajudar..
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)