02.05.2016, 08:33
Hello guys i was making a new ATM system with textdraws in my server. every thing works fine except 2 things:
1: when that TextDraw comes, the arrow to select on of the option dont come.
2: there is a TextDaw with default string as NAMEHERE. i use TextDrawSetString when he uses commands /atm. but the string is not getting updated to his name and but, insted it just satys NAMEHERE.
please what am i doing wrong. here is the code of /atm.
P.S. : i have not done anything in OnPlayerClickTextdraw so is that a prob? i just made that TD and just wanted to see if its showing or not. also, thanks to adri1's TDE Editor. thats great.
1: when that TextDraw comes, the arrow to select on of the option dont come.
2: there is a TextDaw with default string as NAMEHERE. i use TextDrawSetString when he uses commands /atm. but the string is not getting updated to his name and but, insted it just satys NAMEHERE.
please what am i doing wrong. here is the code of /atm.
PHP код:
CMD:atm(playerid, params[])
{
new atmnamestring[65];
if(IsAtATM(playerid))
{
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][0]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][1]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][2]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][3]);
format(atmnamestring, sizeof(atmnamestring), "%s", GetPlayerNameEx(playerid));
TextDrawSetString(TDEditor_PTD[playerid][4], atmnamestring);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][4]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][5]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][6]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][7]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][8]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][9]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][10]);
}
return 1;
}