Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: krizmanikdev poslato Jul 03, 2021, 01:18:58 PRE PODNE

Naslov: dialog
Poruka od: krizmanikdev poslato Jul 03, 2021, 01:18:58 PRE PODNE
Problem(error/warning): ja zavrsim sa dialogom, udjem ig upisem /dmlist i izbaci ovu listu : https://imgur.com/a/D2y497b , i samo da napomenem da nema nikakvih errora nego samo je takva lista ne znam zasto...

Deo skripte: [pawn]   if(dialogid == DIALOG_DMLIST)
   {
       if(!response) return 0;
      if(response)
      {
          switch(listitem)
          {
              case 0:
              {
       if(usaoudm1[playerid] == 1) return SCM(playerid,-1,""GREY"[Greska]:"BLUE"Vec si u toj areni,kucaj /lobby da izadjes!!");
       nijenigdje[playerid] = 0;
       usaoudm1[playerid] = 1;
       usaoudm2[playerid] = 0;
       usaoudm3[playerid] = 0;
       usaoudm4[playerid] = 0;
       usaoudm5[playerid] = 0;
       Streak[playerid] = 0;
       SetPlayerInterior(playerid,0);
      SetPlayerPos( 810.2318,-1128.3561,23.8917 );
       SetCameraBehindPlayer(playerid);
       SCM(playerid,-1,""BLUE"[DM/ARENA]:"col_zelena"Usli ste u Deathmatch arenu 1 - JAPAN");
       TogglePlayerControllable(playerid,0);
       SetPlayerHealth(playerid,1000);
       SetTimerEx("antisk",3000,false,"i",playerid);
       ResetPlayerWeapons(playerid);
       SetPlayerArmour(playerid,99.0);
       SetPlayerHealth(playerid,99.0);
         GivePlayerWeapon(playerid,24,100);
         GivePlayerWeapon(playerid,25,500);
         GivePlayerWeapon(playerid,31,500);
         
            }
            case 1:
              {
             
        if(usaoudm2[playerid] == 1) return SCM(playerid,-1,""GREY"[Greska]:"BLUE"Vec si u toj areni,kucaj /lobby da izadjes!!");
       nijenigdje[playerid] = 0;
       usaoudm2[playerid] = 1;
       usaoudm1[playerid] = 0;
       usaoudm3[playerid] = 0;
       usaoudm4[playerid] = 0;
       usaoudm5[playerid] = 0;
       Streak[playerid] = 0;
       SetPlayerInterior(playerid,3);
      // SetPlayerPos(playerid,RandomDzumeSpawn[RandomSpawns2][0],RandomDzumeSpawn[RandomSpawns2][1],RandomDzumeSpawn[RandomSpawns2][2]);
       SCM(playerid,-1,""BLUE"[DM/ARENA]:"col_zelena"Usli ste u Deathmatch arenu 2 - LV-PD");
       SetPlayerHealth(playerid,1000);
       TogglePlayerControllable(playerid,0);
       SetTimerEx("antisk",3000,false,"i",playerid);
       ResetPlayerWeapons(playerid);
         SetPlayerArmour(playerid,99.0);
       SetPlayerHealth(playerid,99.0);
         GivePlayerWeapon(playerid,24,150);
          SetPlayerPos( 294.7404,183.5069,1007.1719 );
            }
            case 2:
              {
             
                     if(usaoudm3[playerid] == 1) return SCM(playerid,-1,""GREY"[Greska]:"BLUE"Vec si u toj areni,kucaj /lobby da izadjes!!");
       nijenigdje[playerid] = 0;
       usaoudm3[playerid] = 1;
       usaoudm1[playerid] = 0;
       usaoudm2[playerid] = 0;
       usaoudm4[playerid] = 0;
       usaoudm5[playerid] = 0;
       Streak[playerid] = 0;
       SetPlayerInterior(playerid,10);
      // SetPlayerPos(playerid,RandomGorileSpawn[RandomSpawns3][0],RandomGorileSpawn[RandomSpawns3][1],RandomGorileSpawn[RandomSpawns3][2]);
       SCM(playerid,-1,""BLUE"[DM/ARENA]:"col_zelena"Usli ste u Deathmatch arenu 3 - RC Battlefield ");
       SetPlayerHealth(playerid,1000);
       TogglePlayerControllable(playerid,0);
       SetTimerEx("antisk",3000,false,"i",playerid);
       ResetPlayerWeapons(playerid);
       SetPlayerArmour(playerid,99.0);
       SetPlayerHealth(playerid,99.0);
         GivePlayerWeapon(playerid,24,100);
         GivePlayerWeapon(playerid,25,500);
         GivePlayerWeapon(playerid,31,500);
         GivePlayerWeapon(playerid,34,150);
      SetPlayerPos( -973.8991,1094.3209,1344.9817 );
            }
            
            case 3:
              {
        if(usaoudm4[playerid] == 1) return SCM(playerid,-1,""GREY"[Greska]:"BLUE"Vec si u toj areni,kucaj /lobby da izadjes!!");
       nijenigdje[playerid] = 0;
       usaoudm3[playerid] = 0;
       usaoudm1[playerid] = 0;
       usaoudm2[playerid] = 0;
       usaoudm4[playerid] = 1;
       usaoudm5[playerid] = 0;
       Streak[playerid] = 0;
       SetPlayerInterior(playerid,0);
       //SetPlayerPos(playerid,RandomSniperSpawn[RandomSpawns4][0],RandomSniperSpawn[RandomSpawns4][1],RandomSniperSpawn[RandomSpawns4][2]);
       SCM(playerid,-1,""BLUE"[DM/ARENA]:"col_zelena"Usli ste u Deathmatch arenu 4 - Sniper Arena ");
       TogglePlayerControllable(playerid,0);
       SetTimerEx("sniperdm",1500,false,"i",playerid);
       ResetPlayerWeapons(playerid);
       SetPlayerHealth(playerid,20);
       SetPlayerArmour(playerid,0);
         GivePlayerWeapon(playerid,34,150);
      SetPlayerPos( 1486.2655,-2968.3096,18.3252 );
                 
                }
                case 4:
              {
        if(usaoudm5[playerid] == 1) return SCM(playerid,-1,""GREY"[Greska]:"BLUE"Vec si u toj areni,kucaj /lobby da izadjes!!");
       nijenigdje[playerid] = 0;
       usaoudm3[playerid] = 0;
       usaoudm1[playerid] = 0;
       usaoudm2[playerid] = 0;
       usaoudm4[playerid] = 0;
      usaoudm5[playerid] = 1;
      Streak[playerid] = 0;
       SetPlayerInterior(playerid,0);
      // SetPlayerPos(playerid,RandomBarSpawn[RandomSpawns5][0],RandomBarSpawn[RandomSpawns5][1],RandomBarSpawn[RandomSpawns5][2]);
       SCM(playerid,-1,""BLUE"[DM/ARENA]:"col_zelena"Usli ste u Deathmatch arenu 5 - T2 Arena ");
       SetPlayerHealth(playerid,1000);
       TogglePlayerControllable(playerid,0);
       SetTimerEx("antiskent",3000,false,"i",playerid);
       ResetPlayerWeapons(playerid);
       SetPlayerArmour(playerid,50.0);
       SetPlayerHealth(playerid,60.0);
         GivePlayerWeapon(playerid,24,30);
         GivePlayerWeapon(playerid,31,60);
      SetPlayerPos( 609.1174,-543.2489,16.5602 );
            }
                 

            
         //   }
         }
      }
   }[/pawn]

A ovo je cmd:
[pawn]YCMD:dmlist(playerid,params[],help)
{
    ShowPlayerDialog(playerid, DIALOG_DMLIST, DIALOG_STYLE_LIST, "JAPAN DM ARENA "COL_LIGHTBLUE"[1]\nLV-PD DM ARENA "COL_LIGHTBLUE"[2]\nRC-GROUNDS DM ARENA "COL_LIGHTBLUE"[3]\nRC-GROUNDS DM ARENA "COL_LIGHTBLUE"[3]\nSNIPER-ONESHOT DM ARENA "COL_LIGHTBLUE"[4]\nT2 DM ARENA "COL_LIGHTBLUE"[5]", ""GREY"DM "COL_LIGHTBLUE"ARENE", ""COL_LIGHTBLUE"Zatvori", "");
   return 1;
} [/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Naslov: Odg: dialog
Poruka od: krizmanikdev poslato Jul 03, 2021, 01:25:33 PRE PODNE
fixao sam