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



Texto3DVeiculo - Slipk - 25.09.2014

estou colocando do jeito que esta ai em baixo mais nгo esta aparecendo nas motos modelo 462 "Veiculo Civil"

PHP код:
// Topo do GM
new Text3D:Texto3DVeiculo[MAX_VEHICLES];
// OnGameModeInit
for(new i=0i<MAX_VEHICLESi++)
{
    if(
GetVehicleModel(i) == 462)
    {
        
Texto3DVeiculo[i] = Create3DTextLabel("Veнculo Civil",0xFF0000AA,0.0,0.0,0.0,100.0,0,0);
        
Attach3DTextLabelToVehicle(Texto3DVeiculo[i],i,0.0,0.0,2.0);
    }

alguйm pode ajudar ae ? REP++


Re: Texto3DVeiculo - DavidCosta - 25.09.2014

Tenta assim:
pawn Код:
for(new i=0; i<MAX_VEHICLES; i++)
    {
        if(GetVehicleModel(i) == 462)
        {
            format(string, sizeof string, "Veнculo Civil");
            Texto3DVeiculo[i] = Create3DTextLabel(string, 0xFF0000AA, 0.0, 0.0, 0.0, 10.0, 0);
            Attach3DTextLabelToVehicle(Texto3DVeiculo[i],i, 0.0, 0.0, 0.0);
        }
    }



Re: Texto3DVeiculo - Slipk - 25.09.2014

3 erros so muito noob nй kkk
Quote:

C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.2\gamemodes\bph.pwn(4210) : error 017: undefined symbol "string"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.2\gamemodes\bph.pwn(4210) : error 017: undefined symbol "string"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.2\gamemodes\bph.pwn(4211) : error 017: undefined symbol "string"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.2\gamemodes\bph.pwn(11956) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.




Re: Texto3DVeiculo - DavidCosta - 25.09.2014

Jб tinha previsto kk
pawn Код:
for(new i=0; i<MAX_VEHICLES; i++)
    {
        if(GetVehicleModel(i) == 462)
        {
            new string[15];
            format(string, sizeof string, "Veнculo Civil");
            Texto3DVeiculo[i] = Create3DTextLabel(string, 0xFF0000AA, 0.0, 0.0, 0.0, 10.0, 0);
            Attach3DTextLabelToVehicle(Texto3DVeiculo[i],i, 0.0, 0.0, 0.0);
        }
    }



Re: Texto3DVeiculo - Slipk - 25.09.2014

nгo sei pq mais ainda nгo esta indo tipo no pawn fala que ta de boa mais no jogo nгo ta aparecendo o texto 3d nas motos Faggio tem alguma sugestгo do que deve ser ?


Re: Texto3DVeiculo - DavidCosta - 26.09.2014

Faz assim:

pawn Код:
//retired
Os carros posicionados acima, sгo do meu sv, usei apenas como exemplo.


Re: Texto3DVeiculo - Slipk - 26.09.2014

deu os seguintes erros :
Quote:

C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(4217) : error 017: undefined symbol "string"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(4217) : error 017: undefined symbol "string"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(4217) : warning 215: expression has no effect
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(4217) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(4217) : fatal error 107: too many error messages on one line




Re: Texto3DVeiculo - ipsLuan - 26.09.2014

Cria a variбvel string.
pawn Код:
new string[15];



Re: Texto3DVeiculo - Slipk - 26.09.2014

mais erros
Quote:

C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.2\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.2\pawno\include\streamer.inc(375) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.2\pawno\include\streamer.inc(397) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.2\pawno\include\streamer.inc(399) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(421 : error 017: undefined symbol "veehName"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(421 : warning 215: expression has no effect
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(421 : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(421 : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrador\Desktop\-[Server GTA]- Brasil Start Life\2.21\gamemodes\bph.pwn(421 : fatal error 107: too many error messages on one line

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


6 Errors.



Re: Texto3DVeiculo - ipsLuan - 26.09.2014

A sua include e plugin streamer estб desatualizada, atualize-as junto com o plugin.