Detaljan opis problema: Kako da u On Dialog response dodam ovaj dialog
case DIALOG_RADIO:
{
if(!response)
{
SendClientMessage(playerid, CRVENA, "Odustao si od slusanja radioa!"); // Salje poruku, ako je odustao
}
if(response) // Ako klikne ''Slusaj'' opisrnije u postu
{
switch(listitem)
{
case 0: // prva radio stranica
{
slusaradio = 1; // Verbijala mu ide na 1, jer pocinje slusati radio, i sada na provjeri slusa radio!
PlayAudioStreamForPlayer(playerid,"LINK pjesme"); //Ovo je pjesma s url streama
}
case 1: //isto kao i case 0
{
slusaradio = 1;
PlayAudioStreamForPlayer(playerid,"LINK pjesme");
}
case 2:
{
slusaradio = 1;
PlayAudioStreamForPlayer(playerid,"LINK pjesme");
}
case 3:
{
slusaradio = 1;
PlayAudioStreamForPlayer(playerid,"LINK pjesme");
}
}
}
}
}
return 1;
}eo OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "{FFAE00}KORISNIČKI RAČUN-REGISTRACIJA","{FFAE00}______________________________________\n \n \n {FFFFFF}Upišite svoju lozinku kako bi ste se registrirali. \n \n Zadnji Update: 6/4/13 \n \n www.Life-On-Balkan.com \n \n \n {FFAE00}______________________________________","Ulaz", "Izlaz");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Lozinka",udb_hash(inputtext));
INI_WriteInt(File,"Novac",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Ubojstva",0);
INI_WriteInt(File,"Smrti",0);
INI_WriteInt(File,"Lider",0);
INI_WriteInt(File,"Member",0);
INI_WriteInt(File,"Rank",0);
INI_WriteInt(File,"Model",0);
INI_WriteInt(File,"Skin",0);
INI_WriteInt(File,"Respekti",0);
INI_WriteInt(File,"Level",0);
INI_WriteInt(File,"Paytime",0);
INI_Close(File);
SpawnPlayer(playerid);
}
}
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo)
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{FFAE00}KORISNIČKI RAČUN-LOGIN","{FFAE00}______________________________________\n \n \n {FFFFFF}Upišite svoju lozinku kako bi ste se logirali. \n \n Zadnji Update: 6/4/13 \n \n www.Life-On-Balkan.com \n \n \n {FFAE00}______________________________________","Ulaz", "Izlaz");
}
return 1;
}
}
}
return 0;
}Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
