Attach3DTextLabelToVehicle -
luqinhassm - 27.04.2015
Bom dia,tarde,noite a todos
É o seguinte vô direto ao ponto eu queria um tutorial/base de comando para Atacar o veiculo com um 3DText tipo eu digitar /txtveh [TEXTO] dentro de um veiculo e criar a 3DText no mesmo. e tipo até fiz mais não salva --'. Finalizando queria um Tutorial/base de comando parecido com isso !
Desde já agradeço.
Cumpz,
Re: Attach3DTextLabelToVehicle - Whoo - 27.04.2015
Olб aqui vai algumas base onde cria a TextLabel e salva
https://sampforum.blast.hk/showthread.php?tid=191820
https://sampforum.blast.hk/showthread.php?tid=470652
Re: Attach3DTextLabelToVehicle -
luqinhassm - 27.04.2015
É que eu nem estudei dcmd ainda --'...
só strcmp(apesar de ser bem mais lento) teria alguma conversor?
Re: Attach3DTextLabelToVehicle -
luqinhassm - 28.04.2015
@bump
Re: Attach3DTextLabelToVehicle -
DiegoCosta - 28.04.2015
Quote:
Originally Posted by Whoo
|
Quote:
Originally Posted by luqinhassm
Й que eu nem estudei dcmd ainda --'...
sу strcmp(apesar de ser bem mais lento) teria alguma conversor?
|
Entгo estude, й, a base foi passada pelo Whoo.
Olha que legal eu achei pelo ******:
https://sampforum.blast.hk/showthread.php?tid=331410
Re: Attach3DTextLabelToVehicle -
GabrielDias_Invision - 28.04.2015
mostra seu comando e informa o sistema de salvamento que vocК usa por favor.
Re: Attach3DTextLabelToVehicle -
luqinhassm - 28.04.2015
Boas, acabei de chegar da escola e lá fiz o salvamento em dini só que to com um problema no comando :@
Peguei do amigo Whoo e tentei adaptar... nao coloquei minhas variáveis ainda.
e ta dando um erro:
pawn Код:
error 035: argument type mismatch (argument 1)
Eu sei que é o problema é com os parâmetros e o parametro do Attach3DTextLabelToVehicle é:
pawn Код:
(Text3D:id, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)
ai entra o problema ta no vehicleid nao to conseguindo criar algo com que nao presise do id do veiculo e sim só estar dentro dele para atacar o mesmo.
PHP код:
dcmd_addlabel(playerid,params[])
{
new string[160],Float: X, Float: Y, Float: Z,text[100];
GetPlayerPos(playerid, X,Y,Z);
if(sscanf(params,"sd",text)) return SendClientMessage(playerid,0xFB9204FF,"USAGE: /addlabel [text][distance]");
Attach3DTextLabelToVehicle(text,0x03B8FCFF,X,Y,Z);
format(string,sizeof(string),"Create3DTextLabel(\"%s\",0x03B8FCFF,%f, %f, %f);",text,X,Y,Z);
SaveToLog("labels",string);
return 1;
}
desde já agradeço.
Re: Attach3DTextLabelToVehicle - Whoo - 28.04.2015
Fiz um exemplo bem rбpido aqui em
DIALOG como base, vocк pode fazer em
DIALOG_STYLE_LIST com isso vocк consegue fazer para mudar a cor o texto e muita coisa.
PHP код:
new Text3D:VeiculoTexto[MAX_VEHICLES];
if(dialogid == SUA_DIALOG )
{
if(response)
{
new VEICULO, Float:POS[3];
VEICULO = GetPlayerVehicleID(playerid);
GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
VeiculoTexto[VEICULO] = Create3DTextLabel( inputtext, 0xFFFFFFFF , 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( VeiculoTexto[VEICULO] , VEICULO, 0.0, 0.0, 2.0);
}
}