21.01.2013, 18:49
Hi, have this code:
if(selectedgun == 0)
{
PlayerTextDrawSetPreviewModel(playerid, previewobj, 345);
PlayerTextDrawSetString(playerid,gunname,"Rocket") ;
}
else if(selectedgun == 1)
{
PlayerTextDrawSetPreviewModel(playerid, previewobj, 19123);
PlayerTextDrawSetString(playerid,gunname,"MicroJam ");
}
The normal, Preview model is rocket and textdraw string is rocket.. But if change gun to 1, only the text changed... Preview model is still rocket
if(selectedgun == 0)
{
PlayerTextDrawSetPreviewModel(playerid, previewobj, 345);
PlayerTextDrawSetString(playerid,gunname,"Rocket") ;
}
else if(selectedgun == 1)
{
PlayerTextDrawSetPreviewModel(playerid, previewobj, 19123);
PlayerTextDrawSetString(playerid,gunname,"MicroJam ");
}
The normal, Preview model is rocket and textdraw string is rocket.. But if change gun to 1, only the text changed... Preview model is still rocket
![Sad](images/smilies/sad.gif)