[Pedido] Attach3DTextLabelToVehicle
#7

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],FloatXFloatYFloatZ,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.
Reply


Messages In This Thread
Attach3DTextLabelToVehicle - by luqinhassm - 27.04.2015, 21:18
Re: Attach3DTextLabelToVehicle - by Whoo - 27.04.2015, 21:56
Re: Attach3DTextLabelToVehicle - by luqinhassm - 27.04.2015, 22:20
Re: Attach3DTextLabelToVehicle - by luqinhassm - 28.04.2015, 15:33
Re: Attach3DTextLabelToVehicle - by DiegoCosta - 28.04.2015, 15:40
Re: Attach3DTextLabelToVehicle - by GabrielDias_Invision - 28.04.2015, 15:48
Re: Attach3DTextLabelToVehicle - by luqinhassm - 28.04.2015, 21:12
Re: Attach3DTextLabelToVehicle - by Whoo - 28.04.2015, 22:20

Forum Jump:


Users browsing this thread: 1 Guest(s)