Jump to content

Question

Posted

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,,:(

2 answers to this question

Recommended Posts

Posted

Vad ca tu ai la OnDialogResponse numarul dialogului 1 , dar cand ai facut dialogul sa arate Fight Styles ai acolo Dialog_Styles .

In loc de 1 pune Dialog_Styles fiindca asa ai la dialog ...

In rest ii bine . Si trebuie sa apesi Clicke Dreapta + Click Stanga sa dai cu pumnul !

idiots.png
Posted

in gamemode asa aveam cu Dialog_Styles si nr dialogului schimbat dar cand am dat copy paste am dat de pe net...nu stiam doar cum sa dau cum pumnul :D ca pe serveru care ma jucam eu era click+f...

[move]Mersi mult[/move]

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.