MOZE POMOC OKO OVOG BAGA

Započeo MIXxX028, Mart 11, 2018, 17:32:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning): Ovako kada se igrac uloguje normalno mu izadje dialog za login ali kada on ukuca tacan pass njemu izbaci kao da je pogresan , ili kada stisne enter bez pass-a on se odma uloguje na srw
Dio skripte: [ pawn ]login[ /pawn ]
  else
		{
		  	new loginstring[350];
			new newip[24];
			new stringic[128];
			GetPlayerIp(playerid, newip, sizeof(newip));
			format(stringic, 128, "EX-Gaming - LOGIN", ImeIgraca(playerid));
			format(loginstring,sizeof(loginstring),""C_BELA"Dobrodosao natrag na "C_CRVENA"EX-Gaming\n\n"C_BELA"Molimo prijavi se za nastavak...\nUpisite lozinku kako bi nastavili s igrom\n\nUgodnu igru zeli ti:  "C_CRVENA"EG ADMIN Team",ImeIgraca(playerid), newip);
			ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD, stringic, loginstring,"Login","Izlaz");
		}
	}

ovo je kada kuca pass
    else
				{
				    new loginstring[350];
					//new newips[24];
					//GetPlayerIp(playerid, newips, sizeof(newips));
					format(conelys, 128, ""SERVER"[Login] - %s", ImeIgraca(playerid));
					format(loginstring,sizeof(loginstring),"{FFFF00}Uneta lozinka nije tacna,upisite ponovo!\n{FFFFFF}Dobrodosli "SERVER"%s\n{FFFFFF}Vas korisnicki racun je pronadjen. Molimo upisite svoju lozinku za prijavu:",ImeIgraca(playerid));
					ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD, conelys,loginstring,"Login","Izlaz");
				}
				if(nelsondebug == 1) printf("[GHOST-DEBUG] DIALOG_LOGIN - 9");
				return 1;
		    }
	    }

a ovo je kada pogrsi sifru
Slika/video ingame problema(obavezno ako je ingame problem)://


Citat: Sploxs poslato Mart 11, 2018, 18:00:20 POSLE PODNE
Daj OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	// ==================================== [ PROTEKCIJA ZA OBARANJE ]
    if(strfind(inputtext, "%", true) != -1) {
        static
			SendAdminMsgStr[100];
		format(SendAdminMsgStr, sizeof SendAdminMsgStr, "{FF0000}[x_AC] - Invalid dialog input - Igrac %s | Input: %s | Nedozvoljeni znak: %", Ime_Igraca(playerid), inputtext);
		AdminPoruka(-1, SendAdminMsgStr);
		return Error(playerid,"Nije moguce uneti ovu vrstu znaka u dijalogu.");
	}
    if(strfind(inputtext, "#", true) != -1) {
        static
			SendAdminMsgStr[100];
		format(SendAdminMsgStr, sizeof SendAdminMsgStr, "{FF0000}[x_AC] - Invalid dialog input - Igrac %s | Input: %s | Nedozvoljeni znak: #", Ime_Igraca(playerid), inputtext);
		AdminPoruka(-1, SendAdminMsgStr);
		return Error(playerid,"Nije moguce uneti ovu vrstu znaka u dijalogu.");
	}
    if(strfind(inputtext, "&", true) != -1) {
        static
			SendAdminMsgStr[100];
		format(SendAdminMsgStr, sizeof SendAdminMsgStr, "{FF0000}[x_AC] - Invalid dialog input - Igrac %s | Input: %s | Nedozvoljeni znak: &", Ime_Igraca(playerid), inputtext);
		AdminPoruka(-1, SendAdminMsgStr);
		return Error(playerid,"Nije moguce uneti ovu vrstu znaka u dijalogu.");
	}
  /*  if(strfind(inputtext, "$", true) != -1) {
        static
			SendAdminMsgStr[100];
		format(SendAdminMsgStr, sizeof SendAdminMsgStr, "{FF0000}[x_AC] - Invalid dialog input - Igrac %s | Input: %s | Nedozvoljeni znak: $", Ime_Igraca(playerid), inputtext);
		AdminPoruka(-1, SendAdminMsgStr);
		return Error(playerid,"Nije moguce uneti ovu vrstu znaka u dijalogu.");
	}*/
	// =========================================================================
    	if(dialogid == CASINO_BROJ)
	{
		if(!response) return 1;
		if(response)
		{
			new broj = strval(inputtext);
			if(broj == PI[playerid][pCasinoNr]) return ErrorTextShow(playerid, "ne mozete igrati isti broj za redom");
			if(broj < 1 || broj > 700) return ErrorTextShow(playerid, "mozes samo igrati od 1 do 700!");
			PI[playerid][pCasinoNr] = broj;
			new kbroj = random(700);
			if(broj == kbroj)
			{
				SetCameraBehindPlayer(playerid);
                new casinotext[2048];
 				format(casinotext,sizeof(casinotext),"Loptica je pala na broj %d.\na vas broj je %d.\n\nDobili ste JackPot od $50000!", kbroj, broj);
 				ShowPlayerDialog(playerid,CASINO_REZULTAT,DIALOG_STYLE_MSGBOX,"Rulet",casinotext,"OK","");
                g_NovacMinus(playerid, 500);
                g_NovacPlus(playerid, 500000);
				new allmsg[256];
				format(allmsg, sizeof(allmsg), "CASINO: Sretni dobitnik %s je osvojio $500.000 na rulet-u. Cestitke!!!", ImeIgraca(playerid));
				SCMTA(SERVERBOJA, allmsg);
			}
			else
			{
                SetCameraBehindPlayer(playerid);
				new casinotext[2048];
 				format(casinotext,sizeof(casinotext),"Loptica je pala na broj %d.\na vas broj je %d.\n\nNiste dobili ovoga puta nista.", kbroj, broj);
 				ShowPlayerDialog(playerid,CASINO_REZULTAT,DIALOG_STYLE_MSGBOX,"Rulet",casinotext,"OK","");
				g_NovacMinus(playerid, 500);
			}
		}
	}
	if (dialogid == DIALOG_MUZIKA + 1)
	{
	    if(response)
	    {
	        new playstring[128];
	    	switch(listitem)
	    	{
	    	    case 0:
	    	    {
	    	        if (!strcmp(MusicData[0][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
	    	        PlayAudioStreamForAll(MusicData[0][musicURL]);
	    	        format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[0][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 1:
	    	    {
	    	        if (!strcmp(MusicData[1][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[1][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[1][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 2:
	    	    {
	    	        if (!strcmp(MusicData[2][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[2][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[2][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 3:
	    	    {
	    	    if (!strcmp(MusicData[3][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[3][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[3][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 4:
	    	    {
	    	    	if (!strcmp(MusicData[4][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[4][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[4][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 5:
	    	    {
	    	        if (!strcmp(MusicData[5][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[5][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[5][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 6:
	    	    {
	    	        if (!strcmp(MusicData[6][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[6][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[6][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 7:
	    	    {
	    	        if (!strcmp(MusicData[7][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[7][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[7][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 8:
	    	    {
	    	        if (!strcmp(MusicData[8][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[8][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[8][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 9:
	    	    {
	    	        if (!strcmp(MusicData[9][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[9][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[9][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 10:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 10 - %s\nID: 11 - %s\nID: 12 - %s\nID: 13 - %s\nID: 14 - %s\n",
					MusicData[10][musicSongName],MusicData[11][musicSongName],MusicData[12][musicSongName],MusicData[13][musicSongName],MusicData[14][musicSongName]);
					format(strB, sizeof(strB), "ID: 15 - %s\nID: 16 - %s\nID: 17 - %s\nID: 18 - %s\nID: 19 - %s\n"C_CRVENA"Dalje\n"C_CRVENA"Nazad",
					MusicData[15][musicSongName],MusicData[16][musicSongName],MusicData[17][musicSongName],MusicData[18][musicSongName],MusicData[19][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 2, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	}
	    }
	}
	if (dialogid == DIALOG_MUZIKA + 2)
	{
	    if(response)
	    {
	        new playstring[128];
	    	switch(listitem)
	    	{
	    	    case 0:
	    	    {
	    	    	if (!strcmp(MusicData[0][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
	    	        PlayAudioStreamForAll(MusicData[10][musicURL]);
	    	        format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[10][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 1:
	    	    {
	    	        if (!strcmp(MusicData[11][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[11][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[11][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 2:
	    	    {
	    	        if (!strcmp(MusicData[12][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[12][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[12][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 3:
	    	    {
	    	        if (!strcmp(MusicData[13][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[13][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[13][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 4:
	    	    {
	    	        if (!strcmp(MusicData[14][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[14][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[14][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 5:
	    	    {
	    	        if (!strcmp(MusicData[15][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[15][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[15][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 6:
	    	    {
	    	        if (!strcmp(MusicData[16][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[16][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[16][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 7:
	    	    {
	    	        if (!strcmp(MusicData[17][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[17][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[17][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 8:
	    	    {
	    	        if (!strcmp(MusicData[18][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[18][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[18][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 9:
	    	    {
	    	        if (!strcmp(MusicData[19][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[19][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[19][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 10:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 20 - %s\nID: 21 - %s\nID: 22 - %s\nID: 23 - %s\nID: 24 - %s\n",
					MusicData[20][musicSongName],MusicData[21][musicSongName],MusicData[22][musicSongName],MusicData[23][musicSongName],MusicData[24][musicSongName]);
					format(strB, sizeof(strB), "ID: 25 - %s\nID: 26 - %s\nID: 27 - %s\nID: 28 - %s\nID: 29 - %s\n"C_CRVENA"Naprijed\n"C_CRVENA"Nazad",
					MusicData[25][musicSongName],MusicData[26][musicSongName],MusicData[27][musicSongName],MusicData[28][musicSongName],MusicData[29][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 3, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	    case 11:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 0 - %s\nID: 1 - %s\nID: 2 - %s\nID: 3 - %s\nID: 4 - %s\n",
					MusicData[0][musicSongName],MusicData[1][musicSongName],MusicData[2][musicSongName],MusicData[3][musicSongName],MusicData[4][musicSongName]);
					format(strB, sizeof(strB), "ID: 5 - %s\nID: 6 - %s\nID: 7 - %s\nID: 8 - %s\nID: 9 - %s\n"C_CRVENA"Dalje",
					MusicData[5][musicSongName],MusicData[6][musicSongName],MusicData[7][musicSongName],MusicData[8][musicSongName],MusicData[9][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 1, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	}
	    }
	}
	if (dialogid == DIALOG_MUZIKA + 3)
	{
	    if(response)
	    {
	        new playstring[128];
	    	switch(listitem)
	    	{
	    	    case 0:
	    	    {
	    	        if (!strcmp(MusicData[20][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
	    	        PlayAudioStreamForAll(MusicData[20][musicURL]);
	    	        format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[20][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 1:
	    	    {
	    	        if (!strcmp(MusicData[21][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[21][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[21][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 2:
	    	    {
	    	        if (!strcmp(MusicData[22][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[22][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[22][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 3:
	    	    {
	    	        if (!strcmp(MusicData[23][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[23][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[23][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 4:
	    	    {
	    	        if (!strcmp(MusicData[24][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[24][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[24][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 5:
	    	    {
	    	        if (!strcmp(MusicData[25][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[25][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[25][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 6:
	    	    {
	    	        if (!strcmp(MusicData[26][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[26][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[26][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 7:
	    	    {
	    	        if (!strcmp(MusicData[27][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[27][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[27][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 8:
	    	    {
	    	        if (!strcmp(MusicData[28][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[28][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[28][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 9:
	    	    {
	    	        if (!strcmp(MusicData[29][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[29][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[29][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 10:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 30 - %s\nID: 31 - %s\nID: 32 - %s\nID: 33 - %s\nID: 34 - %s\n",
					MusicData[30][musicSongName],MusicData[31][musicSongName],MusicData[32][musicSongName],MusicData[33][musicSongName],MusicData[34][musicSongName]);
					format(strB, sizeof(strB), "ID: 35 - %s\nID: 36 - %s\nID: 37 - %s\nID: 38 - %s\nID: 39 - %s\n"C_CRVENA"Nazad",
					MusicData[35][musicSongName],MusicData[36][musicSongName],MusicData[37][musicSongName],MusicData[38][musicSongName],MusicData[39][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 4, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	    case 11:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 10 - %s\nID: 11 - %s\nID: 12 - %s\nID: 13 - %s\nID: 14 - %s\n",
					MusicData[10][musicSongName],MusicData[11][musicSongName],MusicData[12][musicSongName],MusicData[13][musicSongName],MusicData[14][musicSongName]);
					format(strB, sizeof(strB), "ID: 15 - %s\nID: 16 - %s\nID: 17 - %s\nID: 18 - %s\nID: 19 - %s\n"C_CRVENA"Dalje\n"C_CRVENA"Nazad",
					MusicData[15][musicSongName],MusicData[16][musicSongName],MusicData[17][musicSongName],MusicData[18][musicSongName],MusicData[19][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 2, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	}
	    }
	}
	if (dialogid == DIALOG_MUZIKA + 4)
	{
	    if(response)
	    {
	        new playstring[128];
	    	switch(listitem)
	    	{
	    	    case 0:
	    	    {
	    	        if (!strcmp(MusicData[30][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
	    	        PlayAudioStreamForAll(MusicData[30][musicURL]);
	    	        format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[30][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 1:
	    	    {
	    	        if (!strcmp(MusicData[31][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[31][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[31][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 2:
	    	    {
	    	        if (!strcmp(MusicData[32][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[32][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[32][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 3:
	    	    {
	    	        if (!strcmp(MusicData[33][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[33][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[33][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 4:
	    	    {
	    	        if (!strcmp(MusicData[34][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[34][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[34][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 5:
	    	    {
	    	        if (!strcmp(MusicData[35][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[35][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[35][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 6:
	    	    {
	    	        if (!strcmp(MusicData[36][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[36][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[36][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 7:
	    	    {
	    	        if (!strcmp(MusicData[37][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[37][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[37][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 8:
	    	    {
	    	        if (!strcmp(MusicData[38][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[38][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[38][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 9:
	    	    {
	    	        if (!strcmp(MusicData[39][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[39][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[39][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 10:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 20 - %s\nID: 21 - %s\nID: 22 - %s\nID: 23 - %s\nID: 24 - %s\n",
					MusicData[20][musicSongName],MusicData[21][musicSongName],MusicData[22][musicSongName],MusicData[23][musicSongName],MusicData[24][musicSongName]);
					format(strB, sizeof(strB), "ID: 25 - %s\nID: 26 - %s\nID: 27 - %s\nID: 28 - %s\nID: 29 - %s\n"C_CRVENA"Dalje\n"C_CRVENA"Nazad",
					MusicData[25][musicSongName],MusicData[26][musicSongName],MusicData[27][musicSongName],MusicData[28][musicSongName],MusicData[29][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 3, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	}
	    }
	}
	//--------------------------------------------------------------------------
    if (dialogid == DIALOG_MUZIKA + 5)
	{
	    if(response)
	    {
	        AddingSongSlot[playerid] = strval(inputtext);
	        if(strval(inputtext) > MAX_SONGS || strval(inputtext) < 0) return Error(playerid, "ID Od 0 do 40!");
	        ShowPlayerDialog(playerid, DIALOG_MUZIKA + 6, DIALOG_STYLE_INPUT, ""C_CRVENA"Music - Add", ""SIVA"Sada upisite url pjesme koju zelite postaviti!", "Next", "Quit");
	    }
	    return 1;
	}
	if (dialogid == DIALOG_MUZIKA + 6)
	{
	    if(response)
	    {
	        format(AddingSongURL[playerid], 248, "%s", inputtext);
	        if(strlen(inputtext) > 248 || strlen(inputtext) < 10) return Error(playerid, "Url pjesme mora biti manji od 248 znakova a veci od 10!");
	        ShowPlayerDialog(playerid, DIALOG_MUZIKA + 7, DIALOG_STYLE_INPUT, ""C_CRVENA"Music - Add", ""SIVA"Sada upisite ime pjesme koju zelite postaviti!", "Next", "Quit");
	    }
	    return 1;
	}
	if (dialogid == DIALOG_MUZIKA + 7)
	{
	    if(response)
	    {
	        format(AddingSongName[playerid], 128, "%s", inputtext);
	        if(strlen(inputtext) > 128 || strlen(inputtext) < 5) return Error(playerid, "Ime pjesme mora biti manje od 50 znakova a vece od 5!");
			printf("[MUZIKA] Add-Music: Player: %s / Slot %d / SongName: %s / URL: %s", Ime_Igraca(playerid), AddingSongSlot[playerid], AddingSongName[playerid], AddingSongURL[playerid]);
			static gString[100];
			format(gString, sizeof gString, " * MUZIKA: "SIVA"Dodali ste pjesmu %s pod slot %d", AddingSongName[playerid], AddingSongSlot[playerid]);
			SendClientMessage(playerid, CRVENA, gString);
			format(MusicData[AddingSongSlot[playerid]][musicSongName], 128, "%s", AddingSongName[playerid]);
			format(MusicData[AddingSongSlot[playerid]][musicURL], 248, "%s", AddingSongURL[playerid]);

			new musicFile[40];
		    format(musicFile, sizeof musicFile, "Music/ID_%d", AddingSongSlot[playerid]);
			new INI:File = INI_Open(musicFile);
			INI_WriteInt(File, "ID", AddingSongSlot[playerid]);
			INI_WriteString(File, "SongName", AddingSongName[playerid]);
			INI_WriteString(File, "SongURL", AddingSongURL[playerid]);
			INI_Close(File);
		}
	    return 1;
	}
	//--------------------------------------------------------------------------
	if (dialogid == DIALOG_MUZIKA + 8)
	{
	    if(response)
	    {
	        new Music_ID = strval(inputtext);
	        if(strval(inputtext) > MAX_SONGS || strval(inputtext) < 0) return Error(playerid, "Slot mora biti manji od 40 a veci od 0 (racunajuci i nulu)!");
			printf("[MUZIKA] Remove-Music: Player: %s / Slot %d", Ime_Igraca(playerid), Music_ID);
			static gString[100];
			format(gString, sizeof gString, " * MUZIKA: "SIVA"Sklonili ste pjesmu sa slota %d", Music_ID);
			SendClientMessage(playerid, CRVENA, gString);
			format(MusicData[Music_ID][musicSongName], 128, "Nema");
			format(MusicData[Music_ID][musicURL], 248, "Nema");

			new musicFile[40];
		    format(musicFile, sizeof musicFile, "Music/ID_%d", AddingSongSlot[playerid]);
			new INI:File = INI_Open(musicFile);
			INI_WriteInt(File, "ID", AddingSongSlot[playerid]);
			INI_WriteString(File, "SongName", AddingSongName[playerid]);
			INI_WriteString(File, "SongURL", AddingSongURL[playerid]);
			INI_Close(File);
		}
	    return 1;
	}
////////////////////////////////////////////////////////////////////////////////
         if( dialogid == dialog_RCONPROVERA ) {

		if( !response ) return Kick( playerid );
		if( response ) {

		    new broj;
		    if( sscanf( inputtext, "i", broj ) ) return SPD( playerid, dialog_RCONPROVERA, DSP, D_NASLOV, "Da bi mogli da koristite RCON admina, morate da ukucate sigurnosni RCON kodn\nMolimo vas da kod unesete ispod!", D_ODABERI, D_ODUSTANI );
		    if( broj != 1999) return SPD( playerid, dialog_RCONPROVERA, DSP, D_NASLOV, "Da bi mogli da koristite RCON admina, morate da ukucate sigurnosni RCON kodn\nMolimo vas da kod unesete ispod!", D_ODABERI, D_ODUSTANI );

		    SendClientMessage( playerid,SERVERBOJA, "Uspesno si se ulogovao kao RCON administrator!" );
		}
	}
        //ribar
		if(dialogid == MAMAC)
	{
		if(!response) return 1;
		if(response)
		{
			if(listitem == 0)
			{
	        g_NovacMinus(playerid,100);
	        PI[playerid][pMamac] = 1;
	        SCM(playerid,POSAOBOJA,"EG-INFO: Kupili ste Mamac ");
	        SavePlayer(playerid);
			}
			if(listitem == 1)
			{
	        g_NovacMinus(playerid,200);
	        PI[playerid][pMamac] = 2;
	        SCM(playerid,POSAOBOJA,"EG-INFO: Kupili ste Mamac ");
	        SavePlayer(playerid);
			}
			if(listitem == 2)
			{
            g_NovacMinus(playerid,300);
	        PI[playerid][pMamac] = 3;
	        SCM(playerid,POSAOBOJA,"EG-INFO: Kupili ste Mamac ");
	        SavePlayer(playerid);
		    }
		}
      }

Evo ti ceo OnDialogResponse

Citat: MIXxX028 poslato Mart 11, 2018, 18:05:23 POSLE PODNE
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	// ==================================== [ PROTEKCIJA ZA OBARANJE ]
    if(strfind(inputtext, "%", true) != -1) {
        static
			SendAdminMsgStr[100];
		format(SendAdminMsgStr, sizeof SendAdminMsgStr, "{FF0000}[x_AC] - Invalid dialog input - Igrac %s | Input: %s | Nedozvoljeni znak: %", Ime_Igraca(playerid), inputtext);
		AdminPoruka(-1, SendAdminMsgStr);
		return Error(playerid,"Nije moguce uneti ovu vrstu znaka u dijalogu.");
	}
    if(strfind(inputtext, "#", true) != -1) {
        static
			SendAdminMsgStr[100];
		format(SendAdminMsgStr, sizeof SendAdminMsgStr, "{FF0000}[x_AC] - Invalid dialog input - Igrac %s | Input: %s | Nedozvoljeni znak: #", Ime_Igraca(playerid), inputtext);
		AdminPoruka(-1, SendAdminMsgStr);
		return Error(playerid,"Nije moguce uneti ovu vrstu znaka u dijalogu.");
	}
    if(strfind(inputtext, "&", true) != -1) {
        static
			SendAdminMsgStr[100];
		format(SendAdminMsgStr, sizeof SendAdminMsgStr, "{FF0000}[x_AC] - Invalid dialog input - Igrac %s | Input: %s | Nedozvoljeni znak: &", Ime_Igraca(playerid), inputtext);
		AdminPoruka(-1, SendAdminMsgStr);
		return Error(playerid,"Nije moguce uneti ovu vrstu znaka u dijalogu.");
	}
  /*  if(strfind(inputtext, "$", true) != -1) {
        static
			SendAdminMsgStr[100];
		format(SendAdminMsgStr, sizeof SendAdminMsgStr, "{FF0000}[x_AC] - Invalid dialog input - Igrac %s | Input: %s | Nedozvoljeni znak: $", Ime_Igraca(playerid), inputtext);
		AdminPoruka(-1, SendAdminMsgStr);
		return Error(playerid,"Nije moguce uneti ovu vrstu znaka u dijalogu.");
	}*/
	// =========================================================================
    	if(dialogid == CASINO_BROJ)
	{
		if(!response) return 1;
		if(response)
		{
			new broj = strval(inputtext);
			if(broj == PI[playerid][pCasinoNr]) return ErrorTextShow(playerid, "ne mozete igrati isti broj za redom");
			if(broj < 1 || broj > 700) return ErrorTextShow(playerid, "mozes samo igrati od 1 do 700!");
			PI[playerid][pCasinoNr] = broj;
			new kbroj = random(700);
			if(broj == kbroj)
			{
				SetCameraBehindPlayer(playerid);
                new casinotext[2048];
 				format(casinotext,sizeof(casinotext),"Loptica je pala na broj %d.\na vas broj je %d.\n\nDobili ste JackPot od $50000!", kbroj, broj);
 				ShowPlayerDialog(playerid,CASINO_REZULTAT,DIALOG_STYLE_MSGBOX,"Rulet",casinotext,"OK","");
                g_NovacMinus(playerid, 500);
                g_NovacPlus(playerid, 500000);
				new allmsg[256];
				format(allmsg, sizeof(allmsg), "CASINO: Sretni dobitnik %s je osvojio $500.000 na rulet-u. Cestitke!!!", ImeIgraca(playerid));
				SCMTA(SERVERBOJA, allmsg);
			}
			else
			{
                SetCameraBehindPlayer(playerid);
				new casinotext[2048];
 				format(casinotext,sizeof(casinotext),"Loptica je pala na broj %d.\na vas broj je %d.\n\nNiste dobili ovoga puta nista.", kbroj, broj);
 				ShowPlayerDialog(playerid,CASINO_REZULTAT,DIALOG_STYLE_MSGBOX,"Rulet",casinotext,"OK","");
				g_NovacMinus(playerid, 500);
			}
		}
	}
	if (dialogid == DIALOG_MUZIKA + 1)
	{
	    if(response)
	    {
	        new playstring[128];
	    	switch(listitem)
	    	{
	    	    case 0:
	    	    {
	    	        if (!strcmp(MusicData[0][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
	    	        PlayAudioStreamForAll(MusicData[0][musicURL]);
	    	        format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[0][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 1:
	    	    {
	    	        if (!strcmp(MusicData[1][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[1][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[1][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 2:
	    	    {
	    	        if (!strcmp(MusicData[2][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[2][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[2][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 3:
	    	    {
	    	    if (!strcmp(MusicData[3][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[3][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[3][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 4:
	    	    {
	    	    	if (!strcmp(MusicData[4][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[4][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[4][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 5:
	    	    {
	    	        if (!strcmp(MusicData[5][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[5][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[5][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 6:
	    	    {
	    	        if (!strcmp(MusicData[6][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[6][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[6][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 7:
	    	    {
	    	        if (!strcmp(MusicData[7][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[7][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[7][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 8:
	    	    {
	    	        if (!strcmp(MusicData[8][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[8][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[8][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 9:
	    	    {
	    	        if (!strcmp(MusicData[9][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[9][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[9][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 10:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 10 - %s\nID: 11 - %s\nID: 12 - %s\nID: 13 - %s\nID: 14 - %s\n",
					MusicData[10][musicSongName],MusicData[11][musicSongName],MusicData[12][musicSongName],MusicData[13][musicSongName],MusicData[14][musicSongName]);
					format(strB, sizeof(strB), "ID: 15 - %s\nID: 16 - %s\nID: 17 - %s\nID: 18 - %s\nID: 19 - %s\n"C_CRVENA"Dalje\n"C_CRVENA"Nazad",
					MusicData[15][musicSongName],MusicData[16][musicSongName],MusicData[17][musicSongName],MusicData[18][musicSongName],MusicData[19][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 2, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	}
	    }
	}
	if (dialogid == DIALOG_MUZIKA + 2)
	{
	    if(response)
	    {
	        new playstring[128];
	    	switch(listitem)
	    	{
	    	    case 0:
	    	    {
	    	    	if (!strcmp(MusicData[0][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
	    	        PlayAudioStreamForAll(MusicData[10][musicURL]);
	    	        format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[10][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 1:
	    	    {
	    	        if (!strcmp(MusicData[11][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[11][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[11][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 2:
	    	    {
	    	        if (!strcmp(MusicData[12][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[12][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[12][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 3:
	    	    {
	    	        if (!strcmp(MusicData[13][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[13][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[13][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 4:
	    	    {
	    	        if (!strcmp(MusicData[14][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[14][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[14][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 5:
	    	    {
	    	        if (!strcmp(MusicData[15][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[15][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[15][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 6:
	    	    {
	    	        if (!strcmp(MusicData[16][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[16][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[16][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 7:
	    	    {
	    	        if (!strcmp(MusicData[17][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[17][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[17][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 8:
	    	    {
	    	        if (!strcmp(MusicData[18][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[18][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[18][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 9:
	    	    {
	    	        if (!strcmp(MusicData[19][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[19][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[19][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 10:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 20 - %s\nID: 21 - %s\nID: 22 - %s\nID: 23 - %s\nID: 24 - %s\n",
					MusicData[20][musicSongName],MusicData[21][musicSongName],MusicData[22][musicSongName],MusicData[23][musicSongName],MusicData[24][musicSongName]);
					format(strB, sizeof(strB), "ID: 25 - %s\nID: 26 - %s\nID: 27 - %s\nID: 28 - %s\nID: 29 - %s\n"C_CRVENA"Naprijed\n"C_CRVENA"Nazad",
					MusicData[25][musicSongName],MusicData[26][musicSongName],MusicData[27][musicSongName],MusicData[28][musicSongName],MusicData[29][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 3, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	    case 11:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 0 - %s\nID: 1 - %s\nID: 2 - %s\nID: 3 - %s\nID: 4 - %s\n",
					MusicData[0][musicSongName],MusicData[1][musicSongName],MusicData[2][musicSongName],MusicData[3][musicSongName],MusicData[4][musicSongName]);
					format(strB, sizeof(strB), "ID: 5 - %s\nID: 6 - %s\nID: 7 - %s\nID: 8 - %s\nID: 9 - %s\n"C_CRVENA"Dalje",
					MusicData[5][musicSongName],MusicData[6][musicSongName],MusicData[7][musicSongName],MusicData[8][musicSongName],MusicData[9][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 1, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	}
	    }
	}
	if (dialogid == DIALOG_MUZIKA + 3)
	{
	    if(response)
	    {
	        new playstring[128];
	    	switch(listitem)
	    	{
	    	    case 0:
	    	    {
	    	        if (!strcmp(MusicData[20][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
	    	        PlayAudioStreamForAll(MusicData[20][musicURL]);
	    	        format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[20][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 1:
	    	    {
	    	        if (!strcmp(MusicData[21][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[21][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[21][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 2:
	    	    {
	    	        if (!strcmp(MusicData[22][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[22][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[22][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 3:
	    	    {
	    	        if (!strcmp(MusicData[23][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[23][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[23][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 4:
	    	    {
	    	        if (!strcmp(MusicData[24][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[24][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[24][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 5:
	    	    {
	    	        if (!strcmp(MusicData[25][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[25][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[25][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 6:
	    	    {
	    	        if (!strcmp(MusicData[26][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[26][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[26][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 7:
	    	    {
	    	        if (!strcmp(MusicData[27][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[27][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[27][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 8:
	    	    {
	    	        if (!strcmp(MusicData[28][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[28][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[28][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 9:
	    	    {
	    	        if (!strcmp(MusicData[29][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[29][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[29][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 10:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 30 - %s\nID: 31 - %s\nID: 32 - %s\nID: 33 - %s\nID: 34 - %s\n",
					MusicData[30][musicSongName],MusicData[31][musicSongName],MusicData[32][musicSongName],MusicData[33][musicSongName],MusicData[34][musicSongName]);
					format(strB, sizeof(strB), "ID: 35 - %s\nID: 36 - %s\nID: 37 - %s\nID: 38 - %s\nID: 39 - %s\n"C_CRVENA"Nazad",
					MusicData[35][musicSongName],MusicData[36][musicSongName],MusicData[37][musicSongName],MusicData[38][musicSongName],MusicData[39][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 4, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	    case 11:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 10 - %s\nID: 11 - %s\nID: 12 - %s\nID: 13 - %s\nID: 14 - %s\n",
					MusicData[10][musicSongName],MusicData[11][musicSongName],MusicData[12][musicSongName],MusicData[13][musicSongName],MusicData[14][musicSongName]);
					format(strB, sizeof(strB), "ID: 15 - %s\nID: 16 - %s\nID: 17 - %s\nID: 18 - %s\nID: 19 - %s\n"C_CRVENA"Dalje\n"C_CRVENA"Nazad",
					MusicData[15][musicSongName],MusicData[16][musicSongName],MusicData[17][musicSongName],MusicData[18][musicSongName],MusicData[19][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 2, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	}
	    }
	}
	if (dialogid == DIALOG_MUZIKA + 4)
	{
	    if(response)
	    {
	        new playstring[128];
	    	switch(listitem)
	    	{
	    	    case 0:
	    	    {
	    	        if (!strcmp(MusicData[30][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
	    	        PlayAudioStreamForAll(MusicData[30][musicURL]);
	    	        format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[30][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 1:
	    	    {
	    	        if (!strcmp(MusicData[31][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[31][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[31][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 2:
	    	    {
	    	        if (!strcmp(MusicData[32][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[32][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[32][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 3:
	    	    {
	    	        if (!strcmp(MusicData[33][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[33][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[33][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 4:
	    	    {
	    	        if (!strcmp(MusicData[34][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[34][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[34][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 5:
	    	    {
	    	        if (!strcmp(MusicData[35][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[35][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[35][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 6:
	    	    {
	    	        if (!strcmp(MusicData[36][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[36][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[36][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 7:
	    	    {
	    	        if (!strcmp(MusicData[37][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[37][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[37][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 8:
	    	    {
	    	        if (!strcmp(MusicData[38][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[38][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[38][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 9:
	    	    {
	    	        if (!strcmp(MusicData[39][musicSongName], "Nema", true)) return Error(playerid, "Prazan slot pustas wtf o.O");
                    PlayAudioStreamForAll(MusicData[39][musicURL]);
                    format(playstring, sizeof(playstring), " * MUZIKA: "SIVA"%s "C_CRVENA"%s"SIVA"! Da zaustavite kucajte "C_CRVENA"/stopmusic", RandomPlayMsg[random(sizeof(RandomPlayMsg))], MusicData[39][musicSongName]);
	    	        SendClientMessageToAll(CRVENA, playstring);
	    	    }
	    	    case 10:
	    	    {
                    new strA[248],
			            strB[248],
						glStr[496];
					format(strA, sizeof(strA), "ID: 20 - %s\nID: 21 - %s\nID: 22 - %s\nID: 23 - %s\nID: 24 - %s\n",
					MusicData[20][musicSongName],MusicData[21][musicSongName],MusicData[22][musicSongName],MusicData[23][musicSongName],MusicData[24][musicSongName]);
					format(strB, sizeof(strB), "ID: 25 - %s\nID: 26 - %s\nID: 27 - %s\nID: 28 - %s\nID: 29 - %s\n"C_CRVENA"Dalje\n"C_CRVENA"Nazad",
					MusicData[25][musicSongName],MusicData[26][musicSongName],MusicData[27][musicSongName],MusicData[28][musicSongName],MusicData[29][musicSongName]);
					format(glStr, sizeof(glStr), "%s%s",
					strA, strB);
					ShowPlayerDialog(playerid, DIALOG_MUZIKA + 3, DIALOG_STYLE_LIST, ""C_CRVENA"Music - Play", glStr, "Play", "Quit");
	    	    }
	    	}
	    }
	}
	//--------------------------------------------------------------------------
    if (dialogid == DIALOG_MUZIKA + 5)
	{
	    if(response)
	    {
	        AddingSongSlot[playerid] = strval(inputtext);
	        if(strval(inputtext) > MAX_SONGS || strval(inputtext) < 0) return Error(playerid, "ID Od 0 do 40!");
	        ShowPlayerDialog(playerid, DIALOG_MUZIKA + 6, DIALOG_STYLE_INPUT, ""C_CRVENA"Music - Add", ""SIVA"Sada upisite url pjesme koju zelite postaviti!", "Next", "Quit");
	    }
	    return 1;
	}
	if (dialogid == DIALOG_MUZIKA + 6)
	{
	    if(response)
	    {
	        format(AddingSongURL[playerid], 248, "%s", inputtext);
	        if(strlen(inputtext) > 248 || strlen(inputtext) < 10) return Error(playerid, "Url pjesme mora biti manji od 248 znakova a veci od 10!");
	        ShowPlayerDialog(playerid, DIALOG_MUZIKA + 7, DIALOG_STYLE_INPUT, ""C_CRVENA"Music - Add", ""SIVA"Sada upisite ime pjesme koju zelite postaviti!", "Next", "Quit");
	    }
	    return 1;
	}
	if (dialogid == DIALOG_MUZIKA + 7)
	{
	    if(response)
	    {
	        format(AddingSongName[playerid], 128, "%s", inputtext);
	        if(strlen(inputtext) > 128 || strlen(inputtext) < 5) return Error(playerid, "Ime pjesme mora biti manje od 50 znakova a vece od 5!");
			printf("[MUZIKA] Add-Music: Player: %s / Slot %d / SongName: %s / URL: %s", Ime_Igraca(playerid), AddingSongSlot[playerid], AddingSongName[playerid], AddingSongURL[playerid]);
			static gString[100];
			format(gString, sizeof gString, " * MUZIKA: "SIVA"Dodali ste pjesmu %s pod slot %d", AddingSongName[playerid], AddingSongSlot[playerid]);
			SendClientMessage(playerid, CRVENA, gString);
			format(MusicData[AddingSongSlot[playerid]][musicSongName], 128, "%s", AddingSongName[playerid]);
			format(MusicData[AddingSongSlot[playerid]][musicURL], 248, "%s", AddingSongURL[playerid]);

			new musicFile[40];
		    format(musicFile, sizeof musicFile, "Music/ID_%d", AddingSongSlot[playerid]);
			new INI:File = INI_Open(musicFile);
			INI_WriteInt(File, "ID", AddingSongSlot[playerid]);
			INI_WriteString(File, "SongName", AddingSongName[playerid]);
			INI_WriteString(File, "SongURL", AddingSongURL[playerid]);
			INI_Close(File);
		}
	    return 1;
	}
	//--------------------------------------------------------------------------
	if (dialogid == DIALOG_MUZIKA + 8)
	{
	    if(response)
	    {
	        new Music_ID = strval(inputtext);
	        if(strval(inputtext) > MAX_SONGS || strval(inputtext) < 0) return Error(playerid, "Slot mora biti manji od 40 a veci od 0 (racunajuci i nulu)!");
			printf("[MUZIKA] Remove-Music: Player: %s / Slot %d", Ime_Igraca(playerid), Music_ID);
			static gString[100];
			format(gString, sizeof gString, " * MUZIKA: "SIVA"Sklonili ste pjesmu sa slota %d", Music_ID);
			SendClientMessage(playerid, CRVENA, gString);
			format(MusicData[Music_ID][musicSongName], 128, "Nema");
			format(MusicData[Music_ID][musicURL], 248, "Nema");

			new musicFile[40];
		    format(musicFile, sizeof musicFile, "Music/ID_%d", AddingSongSlot[playerid]);
			new INI:File = INI_Open(musicFile);
			INI_WriteInt(File, "ID", AddingSongSlot[playerid]);
			INI_WriteString(File, "SongName", AddingSongName[playerid]);
			INI_WriteString(File, "SongURL", AddingSongURL[playerid]);
			INI_Close(File);
		}
	    return 1;
	}
////////////////////////////////////////////////////////////////////////////////
         if( dialogid == dialog_RCONPROVERA ) {

		if( !response ) return Kick( playerid );
		if( response ) {

		    new broj;
		    if( sscanf( inputtext, "i", broj ) ) return SPD( playerid, dialog_RCONPROVERA, DSP, D_NASLOV, "Da bi mogli da koristite RCON admina, morate da ukucate sigurnosni RCON kodn\nMolimo vas da kod unesete ispod!", D_ODABERI, D_ODUSTANI );
		    if( broj != 1999) return SPD( playerid, dialog_RCONPROVERA, DSP, D_NASLOV, "Da bi mogli da koristite RCON admina, morate da ukucate sigurnosni RCON kodn\nMolimo vas da kod unesete ispod!", D_ODABERI, D_ODUSTANI );

		    SendClientMessage( playerid,SERVERBOJA, "Uspesno si se ulogovao kao RCON administrator!" );
		}
	}
        //ribar
		if(dialogid == MAMAC)
	{
		if(!response) return 1;
		if(response)
		{
			if(listitem == 0)
			{
	        g_NovacMinus(playerid,100);
	        PI[playerid][pMamac] = 1;
	        SCM(playerid,POSAOBOJA,"EG-INFO: Kupili ste Mamac ");
	        SavePlayer(playerid);
			}
			if(listitem == 1)
			{
	        g_NovacMinus(playerid,200);
	        PI[playerid][pMamac] = 2;
	        SCM(playerid,POSAOBOJA,"EG-INFO: Kupili ste Mamac ");
	        SavePlayer(playerid);
			}
			if(listitem == 2)
			{
            g_NovacMinus(playerid,300);
	        PI[playerid][pMamac] = 3;
	        SCM(playerid,POSAOBOJA,"EG-INFO: Kupili ste Mamac ");
	        SavePlayer(playerid);
		    }
		}
      }

Evo ti ceo OnDialogResponse
Brt lik je mislio OnDialogResponse za te dijaloge.
Unkovic.
- Ex. BlackStorm Founder, Owner & Developer
- Ex. Underground Developer.