hey guys, need a little help. I'm making a /cbc command, but when i create it, it doesn't show what i need, example - CBC: $1'000'000 | All cars | 18:00 | Elegy only
Код:
if(dialogid == 876)
{
if(response)
{
if(listitem == 0)
{
cbcmahas = strval(inputtext);
if(strlen(inputtext) == 0) return SendClientMessage(playerid, COLOR_RED, "Tev jaievada CBC transporti!");
ShowPlayerDialog(playerid, 877, DIALOG_STYLE_INPUT, "Car Beauty Contest", "Ievadi CBC transportus:", "Nākamais", "Iziet");
}
if(listitem == 1)
{
CBC[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "^ Tu veiksmīgi pievienojies CBC!");
}
if(listitem == 2)
{
CBC[playerid] = 0;
SendClientMessage(playerid, COLOR_YELLOW, "^ Tu izgāji no CBC!");
}
}
return 1;
}
if(dialogid == 877)
{
if(response)
{
cbctime = strval(inputtext);
if(strlen(inputtext) == 0) return SendClientMessage(playerid, COLOR_RED, "Tev jaievada CBC laiks!");
ShowPlayerDialog(playerid, 878, DIALOG_STYLE_INPUT, "Car Beauty Contest", "Ievadi CBC laiku:", "Nākamais", "Iziet");
}
return 1;
}
if(dialogid == 878)
{
if(response)
{
cbcbalvas = strval(inputtext);
if(strlen(inputtext) == 0) return SendClientMessage(playerid, COLOR_RED, "Tev jaievada CBC balvas!");
ShowPlayerDialog(playerid, 879, DIALOG_STYLE_INPUT, "Car Beauty Contest", "Ievadi CBC balvas:", "Nākamais", "Iziet");
}
return 1;
}
if(dialogid == 879)
{
if(response)
{
cbcvieta = strval(inputtext);
if(strlen(inputtext) == 0) return SendClientMessage(playerid, COLOR_RED, "Tev jaievada CBC vieta!");
ShowPlayerDialog(playerid, 880, DIALOG_STYLE_INPUT, "Car Beauty Contest", "Ievadi CBC vietu:", "Pabeigt", "Iziet");
}
return 1;
}
if(dialogid == 880)
{
if(response)
{
new string[1024];
cbctime = strval(inputtext);
cbcmahas = strval(inputtext);
cbcbalvas = strval(inputtext);
cbcvieta = strval(inputtext);
format(string,sizeof(string),"CBC: %s | %s | %s | %s !",cbcmahas,cbctime,cbcbalvas,cbcvieta);
SendClientMessageToAll(COLOR_GREEN,String);
CBC[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "^ Tu veiksmīgi izveidoji CBC pasākumu!");
}
return 1;
}
Код:
CMD:cbc(playerid, params[])
{
#pragma unused params
ShowPlayerDialog(playerid, 876, DIALOG_STYLE_LIST, "Car Beauty Contest", "Izveidot\nPievienoties\nIziet", "Izveleties", "Iziet");
return 1;
}
Sorry for my bad english.