SA-MP Forums Archive
[Ajuda] Texto 3d Nos Carros - 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] Texto 3d Nos Carros (/showthread.php?tid=360091)



Texto 3d Nos Carros - rilo_520 - 16.07.2012

Como Por Texto 3d Nos Carros De Orgs
EX: groove


Re: Texto 3d Nos Carros - WaGnerLiima - 16.07.2012

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle


Re: Texto 3d Nos Carros - iDeagle_Hurley - 16.07.2012

eu tbm estou tentando fazer li й estudei o tut fiz tudo certinho mas da o seguinte erro
Code:
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : error 001: expected token: ",", but found "."
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : error 029: invalid expression, assumed zero
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : warning 215: expression has no effect
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : warning 215: expression has no effect
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : warning 215: expression has no effect
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : warning 215: expression has no effect
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : warning 215: expression has no effect
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : error 001: expected token: ";", but found ")"
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : fatal error 107: too many error messages on one line

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


4 Errors.
me ajudem resolver isto por favor

code que estou usando:
Code:
    new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;
// Criando o TextLabel para uso posterior
    vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 );
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    //Creating the Vehicle
    //Attaching Text Label To Vehicle
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
me ajudem por favor dou +repu


Re: Texto 3d Nos Carros - WaGnerLiima - 16.07.2012

TOPO DO GM
pawn Code:
new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;
-
-
-
-
Em OnGameModeInit:
pawn Code:
}

    vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 );
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "ColoCa Seu TeXto aki", COLOR_YELLOW, 0.0, 0.0, 0.0, 50.0, 0, 1 );
     Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
    return 1;
}
axo que й dessa forma,isso aki й sу uma base.


Re: Texto 3d Nos Carros - Panico622 - 16.07.2012

@edit coloquei um veiculo de exemplo
pawn Code:
#include<a_samp>

new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;

public OnGameModeInit ( )
{
    vehicle_id = CreateVehicle(432,2179.80004883,1857.69995117,10.89999962,0.00000000,-1,-1,15);
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Seu Texto", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
}
public OnGameModeExit ( )
{
    Delete3DTextLabel( vehicle3Dtext[ vehicle_id ] );
    return true;
}



Re: Texto 3d Nos Carros - iDeagle_Hurley - 16.07.2012

tipo copila tudo certinho
da 2 warwans й eu acho que ele nao carrega o gm
porq nao esta aparecendo o nome do servidor
etc.

quando copilo o gamemode os warwans que da
Code:
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : warning 202: number of arguments does not match definition
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(22076) : warning 202: number of arguments does not match definition
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(22076) : warning 202: number of arguments does not match definition
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(66902) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          13848 bytes
Code size:          2915556 bytes
Data size:         13005872 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:15951660 bytes

4 Warnings.
alguem tem alguma soluзгo?

dou +repu


Re: Texto 3d Nos Carros - Panico622 - 16.07.2012

Quote:
Originally Posted by iDeagle_Hurley
View Post
da os mesmos erros!"
da nao!


Re: Texto 3d Nos Carros - WaGnerLiima - 16.07.2012

posta a linha de todos os erros!


Re: Texto 3d Nos Carros - Panico622 - 16.07.2012

posta essaas linhas ae


Re: Texto 3d Nos Carros - iDeagle_Hurley - 16.07.2012

nao da os mesmo erros falei errado olhe:

Quote:
Originally Posted by iDeagle_Hurley
View Post
tipo copila tudo certinho
da 2 warwans й eu acho que ele nao carrega o gm
porq nao esta aparecendo o nome do servidor
etc.

quando copilo o gamemode os warwans que da
Code:
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : warning 202: number of arguments does not match definition
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(22076) : warning 202: number of arguments does not match definition
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(22076) : warning 202: number of arguments does not match definition
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(66902) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          13848 bytes
Code size:          2915556 bytes
Data size:         13005872 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:15951660 bytes

4 Warnings.
alguem tem alguma soluзгo?

dou +repu



Re: Texto 3d Nos Carros - Panico622 - 16.07.2012

posta a linha!
exemplo:
Code:
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(22076) : warning 202: number of arguments does not match definition
(o verdinho e a linha)

Pra acha й so dar CTRL+G


Re: Texto 3d Nos Carros - iDeagle_Hurley - 16.07.2012

alinha que tu falo e esta
Code:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{00EE00}Rio {FFD700}de {00B2EE}Janeiro {FFFFFF}- Login", "{FFFFFF}Bem Vindo ao\n        {00EE00}Rio {FFD700}de {00B2EE}Janeiro\n\n{FFFFFF}Seja Bem vindo: {FFD700}%s\n\n{FFFFFF}Status da Conta: {00FF00}Registrada.\n\n{f2fafa}Digite sua Senha para Logar !!!\n\n{00B2EE}www.riorpg-oficial.forumeiros.com", "Logar", "Esperar", loginname, loginname);
mas isto tem a ve com o texto??


Re: Texto 3d Nos Carros - iDeagle_Hurley - 16.07.2012

deu certo do warwans do registro mas agora falta os 2 warwans que esta dando do
texto 3d do carro tipo copila e tudo so que nao aparece e atalz

qm ajuda resolver meu problema dou +repu


Linha dos Warwans:
Code:
1.Warwans Linha:18916)  vehicle_id = CreateVehicle(510, 0.0, 0.0, 15.0, 5, 0, 120);

2.Warwans Linha:66904) vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "{FF0000}Rio de Janeiro\nCarro Civil", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Code:
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18916) : warning 202: number of arguments does not match definition
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(66904) : warning 225: unreachable code
aah esqueci d um negocio tipo quando ta sem esse code do carro o gm ligado.
fica normal d boa. mostrando o nome do servidor etc,

quando esta com o code aparece o nome do servidor seguinte forma olhe:
Code:
HostName: SA-MP 0.3 Server
Address:  192.168.0.182:7777
Players:  0 / 50
Ping:     1
Mode:     Unknown
Map:      San Andreas



Re: Texto 3d Nos Carros - Panico622 - 16.07.2012

pawn Code:
1.Warwans Linha:18916 vehicle_id = CreateVehicle(432,2179.80004883,1857.69995117,10.89999962,0.00000000,-1,-1,15);//carro de exemplo
apague a linha 66904

e coloque em baixo da linha 18916:
pawn Code:
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "{FF0000}Rio de Janeiro\nCarro Civil", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
deve ficar assim:
pawn Code:
new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;//topo do gm

public OnGameModeInit ( )
{
    vehicle_id = CreateVehicle(432,2179.80004883,1857.69995117,10.89999962,0.00000000,-1,-1,15);
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "{FF0000}Rio de Janeiro\nCarro Civil", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
}
public OnGameModeExit ( )
{
    Delete3DTextLabel( vehicle3Dtext[ vehicle_id ] );
    return true;
}
Quote:
Originally Posted by iDeagle_Hurley
View Post
...
quando esta com o code aparece o nome do servidor seguinte forma olhe:
Code:
HostName: SA-MP 0.3 Server
Address:  192.168.0.182:7777
Players:  0 / 50
Ping:     1
Mode:     Unknown
Map:      San Andreas
R: vc nao criou outra:
public OnGameModeInit e public OnGameModeExit


Re: Texto 3d Nos Carros - iDeagle_Hurley - 16.07.2012

alguem?


Re: Texto 3d Nos Carros - rilo_520 - 16.07.2012

PS: COLOCQUE DE BAIXO DOS CARROS Q VC QUER Q TENHA EX:

Code:
{    vehicle_id = CreateVehicle(432,2179.80004883,1857.69995117,10.89999962,0.00000000,-1,-1,15);    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "{FF0000}Rio de Janeiro\nCarro Civil", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);}
Code:
{    vehicle_id = CreateVehicle(432,4567.72004883,1957.5458595117,10.89999962,0.00000000,-1,-1,15);    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "{FF0000}Rio de Janeiro\nCarro Civil", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);}
SE VC QUIZER + DE 1 CARRO FAЗA ISSO

(CONSEGUI POR NO MEU GM ASSIM)