Jump to content
  • 0

Ajutor dialog


JilavaXXL

Question

Am un dialog care arata asa [pawn]if (strcmp("/styles", cmdtext, true, 10) == 0)

{

ShowPlayerDialog(playerid,Dialog_Styles,DIALOG_STYLE_LIST,"{FF66FF}Meniu stiluri lupta","Boxing\nKung Fu\nKnee Head\nGrab Kick\nElbow\nNormal","Select", "Cancel");

return 1;

}[/pawn]

si

[pawn]{

if(dialogid == 1)

{

if(response)

{

if(listitem == 0)

{

SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);

}

if(listitem == 1)

{

SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);

}

if(listitem == 2)

{

SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);

}

if(listitem == 3)

{

SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);

}

if(listitem == 4)

{

SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);

}

if(listitem == 5)

{

SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);

}

}

}[/pawn]

nu nu imi nici o eroare iar cand intru pe server scriu /styles si imi merge..dar cand selectez ceva cum lovesc cu stilul de lupta respectiv ???? parca era F+click pe serverele pe care ma jucam..dar nu merge,,:(

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.