SA-MP Forums Archive
help in textdraw please - 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: help in textdraw please (/showthread.php?tid=549425)



help in textdraw please - XaibBaba - 06.12.2014

Код:
(7264) : error 025: function heading differs from prototype
This error is comming

Код:
public OnPlayerClickPlayerTextDraw(playerid, Text:textid)
{
    if(textid == Wheel[0])
    {
        SetPlayerSkin(playerid, 0);
	}
    else if(textid == Wheel[1])
    {
		SetPlayerSkin(playerid, 0);
	}
	else if(textid == Wheel[2])
    {   other codes

for thsi text draw

Код:
 Wheels[0] = TextDrawCreate(132.000000, 147.125000, "box");
	TextDrawLetterSize(Wheels[0], 0.000000, 21.299993);
	TextDrawTextSize(Wheels[0], 534.500000, 0.000000);
	TextDrawAlignment(Wheels[0], 1);
	TextDrawColor(Wheels[0], -1);
	TextDrawUseBox(Wheels[0], 1);
	TextDrawBoxColor(Wheels[0], 95);
	TextDrawSetShadow(Wheels[0], 0);
	TextDrawSetOutline(Wheels[0], 0);
	TextDrawBackgroundColor(Wheels[0], 255);
	TextDrawFont(Wheels[0], 1);
	TextDrawSetProportional(Wheels[0], 1);
	TextDrawSetShadow(Wheels[0], 0);

	Wheels[1] = TextDrawCreate(260.500000, 151.500000, "box");
	TextDrawLetterSize(Wheels[1], 0.000000, 2.150000);
	TextDrawTextSize(Wheels[1], 388.000000, 0.000000);
	TextDrawAlignment(Wheels[1], 1);
	TextDrawColor(Wheels[1], -1);
	TextDrawUseBox(Wheels[1], 1);
	TextDrawBoxColor(Wheels[1], 95);
	TextDrawSetShadow(Wheels[1], 0);
	TextDrawSetOutline(Wheels[1], 0);
	TextDrawBackgroundColor(Wheels[1], 255);
	TextDrawFont(Wheels[1], 1);
	TextDrawSetProportional(Wheels[1], 1);
	TextDrawSetShadow(Wheels[1], 0);

	Wheels[2] = TextDrawCreate(281.000000, 154.125000, "WHEELS_MENU");
	TextDrawLetterSize(Wheels[2], 0.388000, 1.486250);
	TextDrawAlignment(Wheels[2], 1);
	TextDrawColor(Wheels[2], -1);
	TextDrawSetShadow(Wheels[2], 0);
	TextDrawSetOutline(Wheels[2], -1);
	TextDrawBackgroundColor(Wheels[2], 255);
	TextDrawFont(Wheels[2], 1);
	TextDrawSetProportional(Wheels[2], 1);
	TextDrawSetShadow(Wheels[2], 0);