21.05.2012, 03:31
It should be:
So I would do it like this:
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
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)
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)
}
Best regards,
Jesse