OnPlayerClickTextDraw bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerClickTextDraw bug (
/showthread.php?tid=586969)
OnPlayerClickTextDraw bug -
AA9 - 26.08.2015
I have problem with onplayerclicktextdraw callback. I have code
Код:
else if(clickedid == MDC[playerid][3])
If i click on that textdraw then for some reason
Код:
clickedid = TDEditor_TD[playerid][5]
And if [code]And if i click on textdraw MDC[playerid][4] then
Код:
clickedid = TDEditor_TD[playerid][6]
Код:
if(_:clickedid != INVALID_TEXT_DRAW){
if(clickedid == TDEditor_TD[playerid][6]) {
PlayerSpawn(playerid);
CancelSelectTextDraw(playerid);}
else if(clickedid == TDEditor_TD[playerid][5]) {
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "LOG IN", "Insert your password", ">>", "Back");
CancelSelectTextDraw(playerid);}
else if(clickedid == MDC[playerid][3]){
SCM(playerid, -1, "DEBUG");}
else if(clickedid == MDC[playerid][4]){
SCM(playerid, -1, "DEBUG");}
}