SA-MP Forums Archive
[Ajuda] TextDraw - 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] TextDraw (/showthread.php?tid=520660)



TextDraw - Ts3 - 19.06.2014

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?


Re: TextDraw - SpeakDS - 19.06.2014

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


Re: TextDraw - CloneZPlays - 19.06.2014

onde vocк colocou a Variбvel?


Re: TextDraw - iD4N0N3_.x[X]x - 19.06.2014

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);
}



Re: TextDraw - Ts3 - 19.06.2014

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"



Re: TextDraw - SpeakDS - 19.06.2014

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);
}



Re: TextDraw - BobbMarley - 19.06.2014

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;
}



Re: TextDraw - Ts3 - 19.06.2014

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

Obrigado a quem tentou me ajudar..