04.08.2013, 20:53
Hi all,
i'm receiving 2 warnings because of selectable textdraws
i'm receiving 2 warnings because of selectable textdraws
Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(_:playertextid != INVALID_TEXT_DRAW)//13271 { for(new x=6; x<15; x++) { if(playertextid == TickTD[playerid][x]) { if(TickTurn[playerid]==0) SendClientMessageEx(playerid,-1,"Its not your turn"); else if(ticbox[playerid][x-6] != 0) SendClientMessageEx(playerid,-1,"You cant draw in this box"); else tickbox(playerid,x-6); break; } } } return 1; } public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(_:clickedid == INVALID_TEXT_DRAW) //13253 { if(GetPVarInt(playerid,"InTic")) TogglePlayerControllable(playerid,0),SelectTextDraw(playerid,0xFFFFFFFF); } return 1; }
Код:
NFoP\gamemodes\NFOP.pwn(13253) : warning 213: tag mismatch NFoP\gamemodes\NFOP.pwn(13271) : warning 213: tag mismatch