- 0
Problema Dialog
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Razvan22
Am bagat un dialog in gm (un gm inceput de mn am dat new la pawno) am bagat unde trebuie comanda
[pawn] if(strcmp(cmdtext, "/bandana", true) == 0)
{
ShowPlayerDialog(playerid,bandana,DIALOG_STYLE_LIST,"Bandana","Bandana 1\nBandana 2\nBandana 3\nBandana 4\nBandana 5\nBandana 6\nBandana 7\nBandana 8\nBandana 9\nBandana 10\nRemove Bandana","OK","");
return 1;
}[/pawn]
si la linia public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
am pus:
[pawn]if(dialogid==bandana)
{
if(response)
{
if(listitem==0)
{
SetPlayerAttachedObject( playerid, 0, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==1)
{
SetPlayerAttachedObject( playerid, 0, 18913, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==2)
{
SetPlayerAttachedObject( playerid, 0, 18916, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==3)
{
SetPlayerAttachedObject(playerid, 0, 18915, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==4)
{
SetPlayerAttachedObject(playerid, 0, 18912 , 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==5)
{
SetPlayerAttachedObject(playerid, 0, 18911 , 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==6)
{
SetPlayerAttachedObject( playerid, 0, 18914, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==7)
{
SetPlayerAttachedObject(playerid, 0, 18918, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==8)
{
SetPlayerAttachedObject(playerid, 0, 18920 , 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==9)
{
SetPlayerAttachedObject(playerid, 0, 18919 , 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
}
if(listitem==10)
{
for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i);
}
}
return 1;
}[/pawn] si am adaugat si [pawn]#define bandana 8[/pawn] Imi puteti zice de ce cand intru pe sv nu-mi merge comanda? si vreau sa mentionez ca se compileaza perfect
7 answers to this question
Recommended Posts