Posts: 357
Threads: 6
Joined: Feb 2018
Код:
for(new t = 1; t < sizeof(TruckInfo); t++)
{
new szDialog[1024];
strcat(szDialog, "Destinatia\tDistanta\tSkill\tTimp\n");
format(szDialog, sizeof(szDialog), "%s\n%s\t%.2f km\t%d\t%s\n",szDialog, TruckInfo[t][tName], GetPlayerDistanceFromPoint(playerid, TruckInfo[t][tPosX], TruckInfo[t][tPosY], TruckInfo[t][tPosZ]), TruckInfo[t][tSkill], CalculeazaTimp2(TruckInfo[t][tTime]));
ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_STYLE_TABLIST_HEADERS, "Selecteaza destinatia:", szDialog, "Select", "Cancel");
}
try this
Posts: 357
Threads: 6
Joined: Feb 2018
Quote:
Originally Posted by ShadowBlack
now, the command it's not working
|
What is your problem actually?
it doesn't show Skill and Timp in the dialog or other than that?
Код:
for(new t = 1; t < sizeof(TruckInfo); t++)
{
new szDialog[2096];
strcat(szDialog, "{FFFFFF}Destinatia\t{FFFFFF}Distanta\t{FFFFFF}Skill\t{FFFFFF}Timp\n");
format(szDialog, sizeof(szDialog), "{FFFFFF}%s\n%s\t%.2f km\t%d\t%s\n",szDialog, TruckInfo[t][tName], GetPlayerDistanceFromPoint(playerid, TruckInfo[t][tPosX], TruckInfo[t][tPosY], TruckInfo[t][tPosZ]), TruckInfo[t][tSkill], CalculeazaTimp2(TruckInfo[t][tTime]));
}
ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_STYLE_TABLIST_HEADERS, "Selecteaza destinatia:", szDialog, "Select", "Cancel");
Use this!
Posts: 357
Threads: 6
Joined: Feb 2018
Quote:
Originally Posted by ShadowBlack
you have skype?
|
Nope.
Posts: 81
Threads: 41
Joined: Sep 2017
Reputation:
0
it does not look like it should /work
Did not I do well? (new TruckInfo[MAX.... and saving in database, when server is starting i have printf and it's howing ok ([loading] 2 trucks positions loaded , you can help me with rewrite?