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", cmdtext, true, 10) == 0)
    {
        new 
Text:textdraw;
        
textdraw = TextDrawCreate(320.0, 240.0, "_");
        
TextDrawFont(textdraw, TEXT_DRAW_FONT_MODEL_PREVIEW);
        
TextDrawUseBox(textdraw, 1);
        
TextDrawBoxColor(textdraw, 0x000000FF);
        
TextDrawTextSize(textdraw, 40.0, 40.0);
        
TextDrawSetPreviewModel(textdraw, 411);//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