Making this short
#5

It should be:

pawn Код:
if(clickedid == Textdraw7 || clickedid == Textdraw22 || clickedid == Textdraw23 || clickedid == Textdraw24 || clickedid == Textdraw25 || clickedid == Textdraw26 || clickedid == Textdraw27 || clickedid == Textdraw28 || clickedid == Textdraw29 || clickedid == Textdraw30 || clickedid == Textdraw31 || clickedid == Textdraw32 || clickedid == Textdraw33 || clickedid == Textdraw34)
So I would do it like this:
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
new Text:cid = clickedid
if(cid == Textdraw7 || cid == Textdraw22 || cid == Textdraw23 || cid == Textdraw24 || cid == Textdraw25 || cid == Textdraw26 || cid == Textdraw27 || cid == Textdraw28 || cid == Textdraw29 || cid == Textdraw30 || cid == Textdraw31 || cid == Textdraw32 || cid == Textdraw33 || cid == Textdraw34)
}
At least, I guess the cid also has to be a 'Text:', else just remove that part and it should work fine. ( I've not worked with clickable textdraws yet so that's why I'm not sure. )

Best regards,
Jesse
Reply


Messages In This Thread
Making this short - by Faisal_khan - 20.05.2012, 15:26
Re: Making this short - by zombieking - 20.05.2012, 15:55
Re: Making this short - by Faisal_khan - 20.05.2012, 17:53
Re: Making this short - by Jonny5 - 20.05.2012, 20:41
Re: Making this short - by jessejanssen - 21.05.2012, 03:31
Re: Making this short - by Faisal_khan - 21.05.2012, 04:55

Forum Jump:


Users browsing this thread: 3 Guest(s)