3d text
#1

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!
Reply
#2

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?
Reply
#3

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
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)