callbacks.pwn(1213) : warning 213: tag mismatch callbacks.pwn(1217) : warning 213: tag mismatch callbacks.pwn(1221) : warning 213: tag mismatch callbacks.pwn(1225) : warning 213: tag mismatch callbacks.pwn(1229) : warning 213: tag mismatch callbacks.pwn(1242) : error 001: expected token: "]", but found ")" callbacks.pwn(1243) : error 001: expected token: "]", but found ")" callbacks.pwn(1244) : error 001: expected token: "]", but found ")" callbacks.pwn(1245) : error 001: expected token: "]", but found ")" callbacks.pwn(1246) : error 001: expected token: "]", but found ")" callbacks.pwn(1247) : error 001: expected token: "]", but found ")" callbacks.pwn(1248) : error 001: expected token: "]", but found ")" callbacks.pwn(1249) : error 001: expected token: "]", but found ")" callbacks.pwn(1250) : error 001: expected token: "]", but found ")" callbacks.pwn(1251) : error 001: expected token: "]", but found ")" callbacks.pwn(1252) : error 001: expected token: "]", but found ")" callbacks.pwn(1253) : error 001: expected token: "]", but found ")"
./includes/callbacks.pwn(1211) : warning 213: tag mismatch ./includes/callbacks.pwn(1215) : warning 213: tag mismatch ./includes/callbacks.pwn(1219) : warning 213: tag mismatch ./includes/callbacks.pwn(1223) : warning 213: tag mismatch ./includes/callbacks.pwn(1227) : warning 213: tag mismatch
if(_:clickedid != INVALID_TEXT_DRAW) { if(clickedid == GUI_HuongDan[playerid][1]) // nhan cong viec { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]); } else if(clickedid == GUI_HuongDan[playerid][2]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); } else if(clickedid == GUI_HuongDan[playerid][3]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]); } else if(clickedid == GUI_HuongDan[playerid][5]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]); } else if(clickedid == GUI_HuongDan[playerid][13]) {
else if(clickedid == GUI_HuongDan[playerid][13]) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][0]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][1]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][2]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][3]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][4]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][5]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][6]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][7]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][8]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][9]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][10]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][11]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][12]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][13]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][14]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][15]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][16]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][17]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][18]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][19]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][20]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][21]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][22]); // line 1253 } |
else if(clickedid == GUI_HuongDan[playerid][13]) { for(new i = 0; i < 23; i++) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]); } } |
Ok you have to use the OnPlayerClickPlayerTextDraw callback
|
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(_:playertextid != INVALID_TEXT_DRAW) { if(playertextid == GUI_HuongDan[playerid][1]) // line 1213 { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]); } else if(playertextid == GUI_HuongDan[playerid][2]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); } else if(playertextid == GUI_HuongDan[playerid][3]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]); } else if(playertextid == GUI_HuongDan[playerid][5]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]); } else if(playertextid == GUI_HuongDan[playerid][13]) { for(new i = 0; i < 23; i++) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]); } } } }
Ok you have to use the OnPlayerClickPlayerTextDraw callback
|
You don't use the good callback, look this code :
Code:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(_:playertextid != INVALID_TEXT_DRAW) { if(playertextid == GUI_HuongDan[playerid][1]) // line 1213 { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]); } else if(playertextid == GUI_HuongDan[playerid][2]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); } else if(playertextid == GUI_HuongDan[playerid][3]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]); } else if(playertextid == GUI_HuongDan[playerid][5]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]); } else if(playertextid == GUI_HuongDan[playerid][13]) { for(new i = 0; i < 23; i++) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]); } } } } |
You don't use the good callback, look this code :
Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(_:playertextid != INVALID_TEXT_DRAW) { if(playertextid == GUI_HuongDan[playerid][1]) // line 1213 { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]); } else if(playertextid == GUI_HuongDan[playerid][2]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); } else if(playertextid == GUI_HuongDan[playerid][3]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]); } else if(playertextid == GUI_HuongDan[playerid][5]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]); } else if(playertextid == GUI_HuongDan[playerid][13]) { for(new i = 0; i < 23; i++) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]); } } } } |
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(playertextid == GUI_HuongDan[playerid][1]) // line 1213 { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]); } else if(playertextid == GUI_HuongDan[playerid][2]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); } else if(playertextid == GUI_HuongDan[playerid][3]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]); } else if(playertextid == GUI_HuongDan[playerid][5]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]); } else if(playertextid == GUI_HuongDan[playerid][13]) { for(new i = 0; i < 23; i++) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]); } } }