03.07.2018, 11:00
Quote:
You can create a loop for example something like this:
PHP код:
|
Код:
stock PhoneShowSystem(playerid, index, string[]) { if(index == 0) { PlayerTextDrawSetString(playerid, PhoneList1[0][playerid], string); PlayerTextDrawShow(playerid, PhoneList1[0][playerid]); } else if(index == 1) { PlayerTextDrawSetString(playerid, PhoneList1[1][playerid], string); PlayerTextDrawShow(playerid, PhoneList1[1][playerid]); } else if(index == 2) { PlayerTextDrawSetString(playerid, PhoneList1[2][playerid], string); PlayerTextDrawShow(playerid, PhoneList1[2][playerid]); } else if(index == 3) { PlayerTextDrawSetString(playerid, PhoneList1[3][playerid], string); PlayerTextDrawShow(playerid, PhoneList1[3][playerid]); } else if(index == 4) { PlayerTextDrawSetString(playerid, PhoneList1[4][playerid], string); PlayerTextDrawShow(playerid, PhoneList1[4][playerid]); } return 1; }