04.04.2011, 03:04
Entгo, baixei 2 fs de textdraw, 1 aparece 1 nome definido embaixo do radar e outro lб no topo, mais como vi que eram quase iguais, eu tentei transforma-los em um sу, mais deu 2 erros, aqui vai o cуdigo e logo abaixo o erro;
Linha 41: TextDrawHideForPlayer(playerid, textdraw);
Linha 45: apenas 1 {
pawn Код:
#include <a_samp>
new Text:Textdraw0;
new Text:textdraw;
public OnFilterScriptInit()
{
Textdraw0 = TextDrawCreate(332.000000, 427.000000, "www.BRASILXTREMELIFE.6te.net");
TextDrawAlignment(Textdraw0, 2);
TextDrawBackgroundColor(Textdraw0, 16711935);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.759999, 2.000000);
TextDrawColor(Textdraw0, 65535);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, textdraw);
return 1;
}
public OnPlayerDisconnect
{
TextDrawHideForPlayer(playerid, textdraw);
}
public OnGameModeInit
{
textdraw = TextDrawCreate(206,11,"Brasil XTreme Life");
TextDrawFont(textdraw,3);
TextDrawUseBox(textdraw,0);
}
Quote:
Barra Inferior.pwn(41) : error 001: expected token: ";", but found "{" Barra Inferior.pwn(45) : error 001: expected token: ";", but found "{" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. ================ READY ================ |
Linha 45: apenas 1 {