SA-MP Forums Archive
TextDrawSetPreveiwModel - 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: TextDrawSetPreveiwModel (/showthread.php?tid=415223)



TextDrawSetPreveiwModel - MFanatik - 12.02.2013

new TextDrawSetPreveiwModel doesn't work
code:
PHP код:
    if (strcmp("/infernus"cmdtexttrue10) == 0)
    {
        new 
Text:textdraw;
        
textdraw TextDrawCreate(320.0240.0"_");
        
TextDrawFont(textdrawTEXT_DRAW_FONT_MODEL_PREVIEW);
        
TextDrawUseBox(textdraw1);
        
TextDrawBoxColor(textdraw0x000000FF);
        
TextDrawTextSize(textdraw40.040.0);
        
TextDrawSetPreviewModel(textdraw411);//infernus model
        
TextDrawShowForPlayer(playerid,textdraw);
    } 
errors:
Код:
017	normal	152	"undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW""
029	normal	156	"invalid expression, assumed zero"
017	normal	156	"undefined symbol "TextDrawSetPreviewModel""
i'm using Scripting Machine to script and compile


Re: TextDrawSetPreveiwModel - Jstylezzz - 12.02.2013

Looks like the functions don't exist yet, and as I remember these functions were added in 0.3x
Try to update your includes
(download the server package, extract in your server folder, allow overwrite)


Re: TextDrawSetPreveiwModel - MFanatik - 12.02.2013

I'll try
Edit: Works! thanks