Razvan22 Posted April 21, 2012 Report Share Posted April 21, 2012 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 Link to comment Share on other sites More sharing options...
gunskill Posted April 21, 2012 Report Share Posted April 21, 2012 if(strcmp(cmdtext, "/bandana", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pDonateRank] >= 1) { 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; } else SendClientMessage(playerid, COLOR_GRAD1, " Numai Donatori Pot Folosi Aceasta Comanda!!"); } } Link to comment Share on other sites More sharing options...
Razvan22 Posted April 21, 2012 Author Report Share Posted April 21, 2012 degeaba tot nu merge Link to comment Share on other sites More sharing options...
gunskill Posted April 21, 2012 Report Share Posted April 21, 2012 nu are cum sa nu mearga Link to comment Share on other sites More sharing options...
Razvan22 Posted April 21, 2012 Author Report Share Posted April 21, 2012 am facut sa nu-mi mai dea 33 de erori dar se compila si inainte si acum se compileaza[pawn]C:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(34) : warning 201: redefinition of constant/macro (symbol "DIALOGID")C:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(48) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN")C:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(2988) : warning 225: unreachable codeC:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(3012) : warning 225: unreachable codePawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Warnings.[/pawn] Link to comment Share on other sites More sharing options...
onix09 Posted April 21, 2012 Report Share Posted April 21, 2012 am facut sa nu-mi mai dea 33 de erori dar se compila si inainte si acum se compileaza[pawn]C:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(34) : warning 201: redefinition of constant/macro (symbol "DIALOGID")C:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(48) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN")C:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(2988) : warning 225: unreachable codeC:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(3012) : warning 225: unreachable codePawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Warnings.[/pawn]1.Sterge liniile 34 si 38 + Ce in in jur 2.Dane liniile 2988 si 3012 + Ce in in jur Link to comment Share on other sites More sharing options...
Razvan22 Posted April 21, 2012 Author Report Share Posted April 21, 2012 Erori[pawn]C:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(47) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN")C:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(2986) : warning 225: unreachable codeC:\Users\razvan\Desktop\Romania Tare Stunt\gamemodes\RSGV1.pwn(3010) : warning 225: unreachable codePawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase3 Warnings.[/pawn] La fel se compileaza (daca sterg linia 47 nu se mai compileaza)Linile care mi le-ai cerut +cei in jur[pawn]if(strcmp(cmdtext, "/buyscore", true) == 0){ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"BUY SCORE -> KiLLeRZoNe","1.1000 score -> 1000$\n2.2000 score -> 2000$\n3.3000 score -> 3000$\n4.4000 score -> 4000$\n5.5000 score -> 5000$","Buy","Close");return 1;} 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; } if(strcmp(cmdtext, "/casca", true) == 0) { ShowPlayerDialog(playerid,casca,DIALOG_STYLE_LIST,"Casca","{00FF04}Casca tip {FC0303}1\n{00FF04}Casca tip {FC0303}2\n{00FF04}Casca tip {FC0303}3\n{00FF04}Casca tip {FC0303}4\n{00FF04}Casca tip {FC0303}5\nScoate Casca","Ok","Close"); return 1; } if(strcmp(cmdtext, "/mp3", true) == 0) { ShowPlayerDialog(playerid,mp3,DIALOG_STYLE_LIST,"Mp3","Track 1\nTrack 2\nTrack 3\nTrack 4\nTrack 5\nTrack 6\nTrack 7\nTrack 8\nTrack 9\nTrack 10\nStop Mp3","Listen","Close"); return 1; } if(strcmp(cmdtext, "/ballons", true) == 0) { ShowPlayerDialog(playerid,balon,DIALOG_STYLE_LIST,"Ballons","{00FF04}Balon {FC0303}1\n{00FF04}Balon {FC0303}2\n{00FF04}Balon {FC0303}3\n{00FF04}Balon {FC0303}4\n{00FF04}Balon {FC0303}5\nScoate Balonu","Ok","Close"); return 1; if(strcmp(cmdtext, "/cmenu", true) == 0) { ShowPlayerDialog(playerid, culori, DIALOG_STYLE_LIST, "Player Color Changer", "Purple\nYellow\nRed\nLightblue\nOrange\nGreen\nIndigo\nPink\nBlack", "Select", "Cancel"); return 1; } } return 0;}[/pawn] Link to comment Share on other sites More sharing options...
onix09 Posted April 21, 2012 Report Share Posted April 21, 2012 Gata puteti da T.C. L-am ajutat eu Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
7 answers to this question
Recommended Posts