OnDialogRespone
#5

pawn Код:
if(dialogid == 5510 && response)
{
  switch(listitem)
  {
   case 0:
   {
     if(RegistrationStep[playerid] > 0)
     {
      if(RegistrationStep[playerid] == 1)
      {
        PlayerPlaySound(playerid, 1187, 0, 0, 10);
        PlayerInfo[playerid][pSex] = 1;
        ClearChatbox(playerid, 8);
        ShowPlayerDialog(playerid,5511,DIALOG_STYLE_LIST,"Koliko imas godina","13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30","Odaberi","Odustani");
        ClearChatbox(playerid, 2);
        new maleskin;
        maleskin = random(sizeof(CivMalePeds));
        SetPlayerSkin(playerid, maleskin);
        PlayerInfo[playerid][pChar] = maleskin;
        RegistrationStep[playerid] = 2;
        return 0;
      }
     }
   }
   case 1:
   {
     PlayerPlaySound(playerid, 1187, 0, 0, 10);
     PlayerInfo[playerid][pSex] = 2;
     ClearChatbox(playerid, 8);
     ShowPlayerDialog(playerid,5511,DIALOG_STYLE_LIST,"Koliko imas godina","13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25  6\n27\n28\n29\n30","Odaberi","Odustani");
     ClearChatbox(playerid, 2);
     new femaleskin;
     femaleskin = random(sizeof(CivFemalePeds));
     SetPlayerSkin(playerid, femaleskin);
     SetPlayerSkin(playerid, femaleskin);
     PlayerInfo[playerid][pChar] = femaleskin;
     RegistrationStep[playerid] = 2;
     return 0;
   }
  }
}
Try this,
You only have to change te tabs because I used spaces...
Reply


Messages In This Thread
OnDialogRespone - by DarkPower - 20.04.2010, 20:45
Re: OnDialogRespone - by DarkPower - 21.04.2010, 19:30
Re: OnDialogRespone - by Correlli - 21.04.2010, 19:32
Re: OnDialogRespone - by DarkPower - 21.04.2010, 19:33
Re: OnDialogRespone - by CAR - 21.04.2010, 19:40
Re: OnDialogRespone - by Correlli - 21.04.2010, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)