[Ajuda] Erro me Ajudem.
#1

Bom Eu Estou Tentando Faz tempo Colocar imagem Inicial no Meu Game Mode Ao Logar mas Sempre da esse Erro
Код:
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(11557) : error 021: symbol already defined: "TextDrawHideForPlayer"
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(12868) : error 021: symbol already defined: "TextDrawShowForPlayer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Aqui o Codigo da Imagem Completo
Код:
new Text:ImagemEntrada; //Topo GM


//Em OnGameModeInit()
{
 ImagemEntrada = TextDrawCreate(1.000000, -1.000000, "loadsc2:loadsc2"); 
    TextDrawBackgroundColor(ImagemEntrada, 255); 
    TextDrawFont(ImagemEntrada, 4); 
    TextDrawLetterSize(ImagemEntrada, 0.500000, 1.000000); 
    TextDrawColor(ImagemEntrada, -1); 
    TextDrawSetOutline(ImagemEntrada, 0); 
    TextDrawSetProportional(ImagemEntrada, 1); 
    TextDrawSetShadow(ImagemEntrada, 1); 
    TextDrawUseBox(ImagemEntrada, 1); 
    TextDrawBoxColor(ImagemEntrada, 255); 
    TextDrawTextSize(ImagemEntrada, 645.000000, 450.000000);
}

//Em OnPlayerConnect
TextDrawShowForPlayer(playerid, ImagemEntrada); 
//Em OnPlayerRequestClassic
TextDrawShowForPlayer(playerid, ImagemEntrada);
//Em OnPlayerSpawn
TextDrawHideForPlayer(playerid, ImagemEntrada);
Me Ajudem ae
Reply
#2

Vocк colocou
pawn Код:
TextDrawShowForPlayer(playerid, ImagemEntrada);
na callback OnPlayerConnect?
Reply
#3

Sim Coloquei Junto Com Minhas Outras
Код:
TextDrawShowForPlayer
Que Existem em Meu Game Mode
@Edit
Aqui Esta Onde Coloquei o Textdraw
Код:
fkill[playerid]=0;
	TextDrawShowForPlayer(playerid, forum[playerid]);
        TextDrawShowForPlayer(playerid, ImagemEntrada); 
	TextDrawShowForPlayer(playerid, BPN[playerid]);
  	TextDrawShowForPlayer(playerid, TextDrawdeData[playerid]);
	TextDrawShowForPlayer(playerid, TextDrawdeHora[playerid]);
	DisablePlayerCheckpoint(playerid);
    KillTimer(timer[playerid]);
	RemovePlayerAttachedObject(playerid,4);
Reply
#4

Tire uma, vc tem ela 2x definida
Reply
#5

Entгo Para Resolver e so Eu Nгo Botar no Callback OnPlayerConnect ?,
@Edit
Quando Eu Tiro do callack OnPlayerConnect Ocasiona Muitos Outros Erros,ae so tiro o resto do Code pra voltar ao Normal.
Reply
#6

ae lek espero ajuda

pawn Код:
//topo do gm
new Text:Textdraw0;
agora em OnGameModeInit

pawn Код:
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
agora em OnPlayerConnect

pawn Код:
TextDrawShowForPlayer(playerid,Textdraw0);
agora o utimo em OnPlayerRequestClass

pawn Код:
TextDrawHideForPlayer(playerid, Textdraw0);
Reply
#7

Ainda da Varios Erros
Код:
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\pawno\include\savelucas.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(3809) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(3822) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(3877) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(9080) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(9175) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(9190) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(9237) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(9252) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(11558) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(11567) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(11576) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(11585) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(11594) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(12741) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(12867) : error 021: symbol already defined: "TextDrawHideForPlayer"
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(13315) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(14713) : warning 209: function "GMInit" should return a value
C:\Documents and Settings\casa\Desktop\Nova pasta\eu\GM Brasil Play Script\gamemodes\BPNOWNA.pwn(14714) : error 021: symbol already defined: "TextDrawBackgroundColor"
Reply
#8

tira oq voзe usa e colocar esse que eu passei
Reply
#9

Entгo Eu Fiz isso e Ocasionou esses Erros o Meu So acontecia 2 agora acontece uns 20
@Edit
Conseguir Por a Imagem Mas Depois Do Login a Imagem Nгo Some.
Reply
#10

http://forum.sa-mp.com/showthread.ph...=ImagemEntrada
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)