SA-MP Forums Archive
3d text - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3d text (/showthread.php?tid=535695)



3d text - hillko - 05.09.2014

the thing is that in my games gamemodes error with 3d text!
suppose the aircraft is sold and on it was written the price, but when I buy it there my nickname, and the price does not disappear! that is nick and price all together! How to make price disappeared after the purchase of this aircraft ?

here are the lines
Код HTML:
stock TextPlan()
{
    for(new i;i<MAX_AIR;i++)
    {
    if(!strcmp(Samol[i][cOwner],"sell",true,24))
    {
    new strfd2[120], string[120];
    format(strfd2, sizeof(strfd2), "{da70d6}Ïðîäàåòñÿ\n Öåíà: {c0ff00}%d", Samol[i][cCoast]);
    aeroo[i] = CreateDynamic3DTextLabel(strfd2, 0xFFFFFFAA, 0.0, 0.0, 1.0, 30.0, INVALID_PLAYER_ID, Samol[i][cCarID]);
    Update3DTextLabelText(aeroo[i], COLOR_WHITE, string);
    //Attach3DTextLabelToVehicle(aeroo[i], Samol[i][cCarID], 0.0, 0.0, 1.0, 30.0);
    }else{
    new strfd2[120], string[120];
    format(strfd2, sizeof(strfd2), "{ff9966}Âëàäåëåö: {ffcc00}%s", Samol[i][cOwner]);
    aeroo[i] = CreateDynamic3DTextLabel(strfd2, 0xFFFFFFAA, 0.0, 0.0, 1.0, 30.0, INVALID_PLAYER_ID, Samol[i][cCarID]);
    Update3DTextLabelText(aeroo[i], COLOR_WHITE, string);
    //Attach3DTextLabelToVehicle(aeroo[i], Samol[i][cCarID], 0.0, 0.0, 1.0, 30.0);
    }
    }
    return 1;
}
stock DelTextPlan()
{
    for(new i;i<MAX_AIR;i++)
    {
    Delete3DTextLabel(Text3D:aeroo[i]);
    }
    return 1;
}
and when selling my nick is not removed at the price back!


Re: 3d text - superrobot48 - 05.09.2014

pawn Код:
stock DelTextPlan()
{
    for(new i;i<MAX_AIR;i++)
    {
    Delete3DTextLabel(Text3D:aeroo[i]); // YOU ARE DELETING THE 3D LABEL!
    }
    return 1;
}
where did you use this?


Re: 3d text - hillko - 05.09.2014

Quote:
Originally Posted by superrobot48
Посмотреть сообщение
pawn Код:
stock DelTextPlan()
{
    for(new i;i<MAX_AIR;i++)
    {
    Delete3DTextLabel(Text3D:aeroo[i]); // YOU ARE DELETING THE 3D LABEL!
    }
    return 1;
}
where did you use this?
should delete the line rates but it does not remove


Re: 3d text - memurt - 06.09.2014

PHP код:
stock TextPlan()
{
    for(new 
i;i<MAX_AIR;i++)
    {
    if(!
strcmp(Samol[i][cOwner],"sell",true,24))
    {
    new 
strfd2[120], string[120];
    
format(strfd2sizeof(strfd2), "{da70d6}Продается\n Цена: {c0ff00}%d"Samol[i][cCoast]);
    
aeroo[i] = CreateDynamic3DTextLabel(strfd20xFFFFFFAA0.00.01.030.0INVALID_PLAYER_IDSamol[i][cCarID]);
    
Update3DTextLabelText(aeroo[i], COLOR_WHITEstring);
    
//Attach3DTextLabelToVehicle(aeroo[i], Samol[i][cCarID], 0.0, 0.0, 1.0, 30.0);
    
}else{
    new 
strfd2[120], string[120];
    
format(strfd2sizeof(strfd2), "{ff9966}Владелец: {ffcc00}%s"Samol[i][cOwner]);
    
aeroo[i] = CreateDynamic3DTextLabel(strfd20xFFFFFFAA0.00.01.030.0INVALID_PLAYER_IDSamol[i][cCarID]);
    
Update3DTextLabelText(aeroo[i], COLOR_WHITEstring);
    
//Attach3DTextLabelToVehicle(aeroo[i], Samol[i][cCarID], 0.0, 0.0, 1.0, 30.0);
    
break;
    }
    }
    return 
1;

use break