11.10.2013, 20:49
Hello everyone, i'm having following problem - When i press on the arrows nothing happends.
//On the top of the script
//Creating arrow textrdaws (same for other one)
This is what i got under OnPlayerClickPlayerTextDraw (of course it returns, its just part of it)
//This is what i got under my command.
Код:
new PlayerText:RButton[MAX_PLAYERS]; new PlayerText:LButton[MAX_PLAYERS];
Код:
LButton[playerid] = CreatePlayerTextDraw(playerid,5.000000, 192.000000, "~<~"); PlayerTextDrawBackgroundColor(playerid,LButton[playerid], 255); PlayerTextDrawFont(playerid,LButton[playerid], 1); PlayerTextDrawLetterSize(playerid,LButton[playerid], 1.500000, 1.500000); PlayerTextDrawColor(playerid,LButton[playerid], -1); PlayerTextDrawSetOutline(playerid,LButton[playerid], 0); PlayerTextDrawSetProportional(playerid,LButton[playerid], 1); PlayerTextDrawSetShadow(playerid,LButton[playerid], 1);
Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(GetIntVar(playerid, "Moding") == 1) { if(playertextid == RButton[playerid]) { SCM(playerid,-1,"++"); } if(playertextid == LButton[playerid]) { SCM(playerid,-1,"--"); } }
Код:
PlayerTextDrawShow(playerid, RButton[playerid]); PlayerTextDrawShow(playerid, LButton[playerid]); SetIntVar(playerid, "Moding", 1);