SA-MP Forums Archive
SetPreviewModel only 1x set, if more, not set - 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: SetPreviewModel only 1x set, if more, not set (/showthread.php?tid=409505)



SetPreviewModel only 1x set, if more, not set - gamelaster - 21.01.2013

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


Re: SetPreviewModel only 1x set, if more, not set - FUNExtreme - 21.01.2013

You have to reshow the textdraw.


Re: SetPreviewModel only 1x set, if more, not set - gamelaster - 23.01.2013

Quote:
Originally Posted by FUNExtreme
Посмотреть сообщение
You have to reshow the textdraw.
I test it! Thanx bro