Dialog ..
#1

hey guys.
i did dialog of teams
can you give me fix code?

look , the command is :

Quote:

if(strcmp(cmdtext, "/ClansWar", true) == 0 || strcmp(cmdtext, "//Cw", true) == 0)
{
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_ORANGE, "бшелйн дбайн майжеш дчмап ееаш щм дщшъ");
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST, "Team Select","Team A\nTeam B","бйием","айщеш");
SetPlayerPos(playerid,-1392.2168,-119.6609,14.1484); // Clans war
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,22,9999);
GivePlayerWeapon(playerid,26,9999);
GivePlayerWeapon(playerid,28,9999);
GivePlayerWeapon(playerid,31,9999);
GivePlayerWeapon(playerid,34,9999);
new string[50];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,1;
return 1;
}

dialog response :
Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

if(response)// They pressed the first button.
{
switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
{
case 1:// Our dialog!
{
switch(listitem)// Checking which listitem was selected
{
case 0:// The first item listed
{
SetPlayerPos(playerid, -1369.6040,-79.8589,14.4703);
SendClientMessage(playerid, COLOR_BLUE, "бшелйн дбайн мчбецд ос' 2");
}
case 1: // The second item listed
{
SetPlayerPos(playerid, -1203.8551,-226.8619,14.4703);
SendClientMessage(playerid, COLOR_BLUE, "бшелйн дбайн мчбецд ос' 1");


}
}
}
return 1;
}

return 0;
}

Please Help..
Reply


Messages In This Thread
Dialog .. - by kesem140599 - 17.08.2012, 09:41
Re: Dialog .. - by AndreT - 17.08.2012, 09:47
Re: Dialog .. - by kesem140599 - 17.08.2012, 10:13
Re: Dialog .. - by kesem140599 - 17.08.2012, 11:08
Re: Dialog .. - by kesem140599 - 17.08.2012, 11:39

Forum Jump:


Users browsing this thread: 4 Guest(s)