SA-MP Forums Archive
Compiling errors in an include (error 017) - 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: Compiling errors in an include (error 017) (/showthread.php?tid=440109)



Compiling errors in an include (error 017) - Red_Dragon. - 28.05.2013

Errors:
Код:
D:\Users\Omar\Desktop\Ultra Cubic World\pawno\include\MPM.inc(221) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
D:\Users\Omar\Desktop\Ultra Cubic World\pawno\include\MPM.inc(225) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
D:\Users\Omar\Desktop\Ultra Cubic World\pawno\include\MPM.inc(226) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
D:\Users\Omar\Desktop\Ultra Cubic World\pawno\include\MPM.inc(218) : warning 203: symbol is never used: "mZoom"
D:\Users\Omar\Desktop\Ultra Cubic World\pawno\include\MPM.inc(218) : warning 203: symbol is never used: "Zrot"
D:\Users\Omar\Desktop\Ultra Cubic World\pawno\include\MPM.inc(218) : warning 203: symbol is never used: "Yrot"
D:\Users\Omar\Desktop\Ultra Cubic World\pawno\include\MPM.inc(218) : warning 203: symbol is never used: "Xrot"
D:\Users\Omar\Desktop\Ultra Cubic World\pawno\include\MPM.inc(218) : warning 203: symbol is never used: "modelindex"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Lines:
pawn Код:
stock PlayerText:MPM_CreateMPTextDraw(playerid, modelindex, Float:Xpos, Float:Ypos, Float:Xrot, Float:Yrot, Float:Zrot, Float:mZoom, Float:width, Float:height, bgcolor) //line 218
{
    new PlayerText:txtPlayerSprite = CreatePlayerTextDraw(playerid, Xpos, Ypos, ""); // it has to be set with SetText later // line 221
    PlayerTextDrawFont(playerid, txtPlayerSprite, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawColor(playerid, txtPlayerSprite, 0xFFFFFFFF);
    PlayerTextDrawBackgroundColor(playerid, txtPlayerSprite, bgcolor);
    PlayerTextDrawTextSize(playerid, txtPlayerSprite, width, height); // Text size is the Width:Height
    PlayerTextDrawSetPreviewModel(playerid, txtPlayerSprite, modelindex); //line 225
    PlayerTextDrawSetPreviewRot(playerid,txtPlayerSprite, Xrot, Yrot, Zrot, mZoom); //line 226
    PlayerTextDrawSetSelectable(playerid, txtPlayerSprite, 1);
    PlayerTextDrawShow(playerid,txtPlayerSprite);
    return txtPlayerSprite;
}
I commented the line numbers in the code provided above.
Thank you in advance.


Re: Compiling errors in an include (error 017) - SuperViper - 28.05.2013

You need to have 0.3x includes.


Re: Compiling errors in an include (error 017) - Red_Dragon. - 28.05.2013

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
You need to have 0.3x includes.
I'm sure of that and I double checked that anyway. Still gives the same errors.