Jump to content
  • 0

pomoc Dialogy


XxM4st3rxX

Dotaz

čaute, robím si SkinSystem a chcem spraviť že keď klikne na "Gangy" tak mu ukáže druhý dialog s niečim...mám to takto a keď v hre kliknem na "Gangy" alebo na niečo iné tak sa mi nič nezobrazí :\

EDIT:\ žiadny error pawno nehádže

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/skinsystem", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, skinsysd, DIALOG_STYLE_LIST, "{FFFFFF}Skin System by {55FF77}]in7ive[ (v1.0)", "Gangy\nPolicia\nSA Pracovnici\nBabky\nBezdomovci", "Vyber", "Zrusit");
print("Prikaz /skinsystem bol pouzity!");
return 1;
}
return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(skinsysd)
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, 0x00EEFFFF,"[sKIN SYS.] Dakujeme ze pouzivate SkinSystem!");
print("SkinSystem bol pouzity!");
return 1;
}
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 466, DIALOG_STYLE_LIST, "Vyber si SKIN gangu!", "LS Gang - Skin 1\nLV Gang - Skin 1\nSF Gang - Skin 1", "Vyber", "Zrusit");
}
case 1:
{
ShowPlayerDialog(playerid, 467, DIALOG_STYLE_LIST, "Vyber si SKIN Policie!", "LS Policia - Skin 1\nLV Policia - Skin 1\nSF Policia - Skin 1", "Vyber", "Zrusit");
}
case 2:
{
ShowPlayerDialog(playerid, 468, DIALOG_STYLE_LIST, "Vyber si SKIN SA Pracovnikov!", "LS Pracovnici - Skin 1\nLV Pracovnici - Skin 1\nSF Pracovnici - Skin 1", "Vyber", "Zrusit");
}
case 3:
{
ShowPlayerDialog(playerid, 469, DIALOG_STYLE_LIST, "Vyber si SKIN Babky!", "LS Babka - Skin 1\nLV Babka - Skin 1\nSF Babka - Skin 1", "Vyber", "Zrusit");
}
case 4:
{
ShowPlayerDialog(playerid, 470, DIALOG_STYLE_LIST, "Vyber si SKIN Bezdomovca!", "LS Bezdomovec - Skin 1\nLV Bezdomovec - Skin 1\nSF Bezdomovec - Skin 1", "Vyber", "Zrusit");
}
}
}
}
return 0;
}

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == skinsysd)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 466, DIALOG_STYLE_LIST, "Vyber si SKIN gangu!", "LS Gang - Skin 1\nLV Gang - Skin 1\nSF Gang - Skin 1", "Vyber", "Zrusit");
case 1: ShowPlayerDialog(playerid, 467, DIALOG_STYLE_LIST, "Vyber si SKIN Policie!", "LS Policia - Skin 1\nLV Policia - Skin 1\nSF Policia - Skin 1", "Vyber", "Zrusit");
case 2: ShowPlayerDialog(playerid, 468, DIALOG_STYLE_LIST, "Vyber si SKIN SA Pracovnikov!", "LS Pracovnici - Skin 1\nLV Pracovnici - Skin 1\nSF Pracovnici - Skin 1", "Vyber", "Zrusit");
case 3: ShowPlayerDialog(playerid, 469, DIALOG_STYLE_LIST, "Vyber si SKIN Babky!", "LS Babka - Skin 1\nLV Babka - Skin 1\nSF Babka - Skin 1", "Vyber", "Zrusit");
case 4: ShowPlayerDialog(playerid, 470, DIALOG_STYLE_LIST, "Vyber si SKIN Bezdomovca!", "LS Bezdomovec - Skin 1\nLV Bezdomovec - Skin 1\nSF Bezdomovec - Skin 1", "Vyber", "Zrusit");
}} else {
SendClientMessage(playerid, 0x00EEFFFF,"[sKIN SYS.] Dakujeme ze pouzivate SkinSystem!");
print("SkinSystem bol pouzity!");
}}
return 0;
}

Link to comment
Share on other sites

  • 0

case 4:
{
ShowPlayerDialog(playerid, 470, DIALOG_STYLE_LIST, "Vyber si SKIN Bezdomovca!", "LS Bezdomovec - Skin 1\nLV Bezdomovec - Skin 1\nSF Bezdomovec - Skin 1", "Vyber", "Zrusit");
}
}}else{
SendClientMessage(playerid, 0x00EEFFFF,"[sKIN SYS.] Dakujeme ze pouzivate SkinSystem!");
print("SkinSystem bol pouzity!");
}}
}
return 0; // [b]tu je ten error[/b]
}

 

ERROR:

invalid function or declaration

 

:wtf:

Link to comment
Share on other sites

  • 0

modíci môžte LOCK ;)

 

stačilo odstrániť jednu }

 

case 4:

{

ShowPlayerDialog(playerid, 470, DIALOG_STYLE_LIST, "Vyber si SKIN Bezdomovca!", "LS Bezdomovec - Skin 1\nLV Bezdomovec - Skin 1\nSF Bezdomovec - Skin 1", "Vyber", "Zrusit");

}

}}else{

SendClientMessage(playerid, 0x00EEFFFF,"[sKIN SYS.] Dakujeme ze pouzivate SkinSystem!");

print("SkinSystem bol pouzity!");

}} - túto

}

return 0;

}

 

ak by to niekomu pomohlo :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...