07.06.2015, 15:41
Okay I want to code unit names so this is my code so far
I wan't to make it so when a player enters a vehicle it attaches what the players call-sigh is Attach3DTextLabelToVehicle with the unit names
Код:
new UnitNames[28][30] = {
{"Sam 10"},
{"Sam 20"},
{"Sam 30"},
{"Sam 40"},
{"Adam 1"},
{"Adam 2"},
{"Adam 3"},
{"Adam 4"},
{"Adam 5"},
{"Adam 6"},
{"Adam 7"},
{"Adam 8"},
{"Bravo 1"},
{"Bravo 2"},
{"Bravo 3"},
{"Edward 1"},
{"Tac 1"},
{"Tac 2"},
{"Charles 1"},
{"Charles 2"},
{"Chares 3"},
{"Victor 1"},
{"Victor 2"},
{"Victor 3"},
{"November 1"},
{"November 2"},
{"November 3"},
{"Sting"}};
Код:
COMMAND:unit(playerid, params[])
{
new string[1024];
for(new h = 0; h < sizeof(UnitNames); h++)
{
if(h == 0)
{
format(string, sizeof(string),"%s", UnitNames[h][0]);
}
else
{
format(string, sizeof(string),"%s\n%s", string, UnitNames[h][0]);
}
}
ShowPlayerDialog(playerid,126,DIALOG_STYLE_LIST,"Police Radio Units",string,"Select", "Close");
return 1;
}

