SA-MP Forums Archive
help in Textdraw - 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 (/showthread.php?tid=549418)



help in Textdraw - XaibBaba - 06.12.2014

Код:
E:\scripts\Marx Gaming\gamemodes\MR.pwn(7264) : error 025: function heading differs from prototype
This error is comming what to do please help

Код:
public OnPlayerClickTextDraw(playerid, response, Text:textid)
{
    if(textid == Wheels[3])
    {
      if(response)
	    {
		  SetPlayerSkin(playerid, 0);
		}
	}
    else if(textid == Wheels[4])
    {
		SetPlayerSkin(playerid, 0);
	}
	else if(textid == Wheels[5])



Re: help in Textdraw - Ryz - 06.12.2014

you can't define
pawn Код:
public OnPlayerClickTextDraw(playerid, response, Text:textid)
this is real way
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:textid)



Re: help in Textdraw - XaibBaba - 06.12.2014

[/code]public OnPlayerClickTextDraw(playerid, Text:textid)[code]

not working


Re: help in Textdraw - HY - 06.12.2014

How @Ryz said, real way it's:

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:textid)
And the code? Lol. There's no response.

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:textid)
{
    if(textid == Wheels[3])
    {
        SetPlayerSkin(playerid, 0);
    }
    else if(textid == Wheels[4])
    {
        SetPlayerSkin(playerid, 0);
    }
    else if(textid == Wheels[5])
    {
        // Others Code
    }
    return 1;
}



Re: help in Textdraw - XaibBaba - 06.12.2014

Код:
 public OnPlayerClickTextDraw(playerid, Text:textid)
guys i do that but same error is comming


Код:
public OnPlayerClickTextDraw(playerid, Text:textid)
{
    if(textid == Wheels[3])
    {
        SetPlayerSkin(playerid, 0);
    }
    else if(textid == Wheels[4])
    {
        SetPlayerSkin(playerid, 0);
    }
    else if(textid == Wheels[5])
    {
        // Others Code
    }
    return 1;
}