help in Textdraw
#1

Код:
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])
Reply
#2

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

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

not working
Reply
#4

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;
}
Reply
#5

Код:
 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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)