28.05.2013, 13:37
Errors:
Lines:
I commented the line numbers in the code provided above.
Thank you in advance.
Код:
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.
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;
}
Thank you in advance.