Can't choose.. [case] -
.v - 23.09.2012
I can't choose other weapons because of case 13..15. What should I need to do to make all weapon able to choose?
pawn Код:
if(dialogid == DUELDIAG+6)
{
if(response)
{
new key[7];
format(key, sizeof(key), "dWep%d", GetPVarInt(playerid, "dWSlot"));
switch(listitem)
{
case 13..15:
{
ShowPlayerDialog(playerid, DUELDIAG+6, DIALOG_STYLE_LIST, "Choose a weapon", "Brass Knuckles\nGolf Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nDildo\nVibrator\nFlowers\nCane\nGrenade\nTeargas\nMolotov\nColt 45\nSilenced Pistol\nDeagle\nShotgun\nSawn-Off\nSpas\nUzi\nMP5\nAK47\nM4\nTec9\nRifle\nSniper", "Select", "Back");
return SendClientMessage(playerid, WHITE, "{FF0000}>> This weapon is disabled!");
}
}
switch(listitem)
{
case 0: SetPVarInt(playerid, key, 1);
case 1: SetPVarInt(playerid, key, 2);
case 2: SetPVarInt(playerid, key, 3);
case 3: SetPVarInt(playerid, key, 4);
case 4: SetPVarInt(playerid, key, 5);
case 5: SetPVarInt(playerid, key, 6);
case 6: SetPVarInt(playerid, key, 7);
case 7: SetPVarInt(playerid, key, 8);
case 8: SetPVarInt(playerid, key, 9);
case 9: SetPVarInt(playerid, key, 10);
case 10: SetPVarInt(playerid, key, 11);
case 11: SetPVarInt(playerid, key, 14);
case 12: SetPVarInt(playerid, key, 15);
case 13: SetPVarInt(playerid, key, 16);
case 14: SetPVarInt(playerid, key, 17);
case 15: SetPVarInt(playerid, key, 18);
case 16: SetPVarInt(playerid, key, 22);
case 17: SetPVarInt(playerid, key, 23);
case 18: SetPVarInt(playerid, key, 24);
case 19: SetPVarInt(playerid, key, 25);
case 20: SetPVarInt(playerid, key, 26);
case 21: SetPVarInt(playerid, key, 27);
case 22: SetPVarInt(playerid, key, 28);
case 23: SetPVarInt(playerid, key, 29);
case 24: SetPVarInt(playerid, key, 30);
case 25: SetPVarInt(playerid, key, 31);
case 26: SetPVarInt(playerid, key, 32);
case 27: SetPVarInt(playerid, key, 33);
case 28: SetPVarInt(playerid, key, 34);
}
ShowDuelSettingsDialog(playerid);
}
else ShowDuelSettingsDialog(playerid);
}
Re: Can't choose.. [case] -
Mr.Anonymous - 23.09.2012
Not sure, but it should be
i guess
Re: Can't choose.. [case] -
.v - 23.09.2012
Quote:
Originally Posted by Mr.Anonymous
Not sure, but it should be
i guess
|
I mean without putting 13,15 or even 13..15 just a normal case.
Re: Can't choose.. [case] -
.v - 24.09.2012
Anyone mind helping me?
Re: Can't choose.. [case] -
Unte99 - 24.09.2012
For now, you can use this.
pawn Код:
case 13:
{
ShowPlayerDialog(playerid, DUELDIAG+6, DIALOG_STYLE_LIST, "Choose a weapon", "Brass Knuckles\nGolf Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nDildo\nVibrator\nFlowers\nCane\nGrenade\nTeargas\nMolotov\nColt 45\nSilenced Pistol\nDeagle\nShotgun\nSawn-Off\nSpas\nUzi\nMP5\nAK47\nM4\nTec9\nRifle\nSniper", "Select", "Back");
return SendClientMessage(playerid, WHITE, "{FF0000}>> This weapon is disabled!");
}
case 14:
{
ShowPlayerDialog(playerid, DUELDIAG+6, DIALOG_STYLE_LIST, "Choose a weapon", "Brass Knuckles\nGolf Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nDildo\nVibrator\nFlowers\nCane\nGrenade\nTeargas\nMolotov\nColt 45\nSilenced Pistol\nDeagle\nShotgun\nSawn-Off\nSpas\nUzi\nMP5\nAK47\nM4\nTec9\nRifle\nSniper", "Select", "Back");
return SendClientMessage(playerid, WHITE, "{FF0000}>> This weapon is disabled!");
}
case 15:
{
ShowPlayerDialog(playerid, DUELDIAG+6, DIALOG_STYLE_LIST, "Choose a weapon", "Brass Knuckles\nGolf Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nDildo\nVibrator\nFlowers\nCane\nGrenade\nTeargas\nMolotov\nColt 45\nSilenced Pistol\nDeagle\nShotgun\nSawn-Off\nSpas\nUzi\nMP5\nAK47\nM4\nTec9\nRifle\nSniper", "Select", "Back");
return SendClientMessage(playerid, WHITE, "{FF0000}>> This weapon is disabled!");
}
Don't know if this works, but you can try it.
pawn Код:
case 13||14||15:
{
ShowPlayerDialog(playerid, DUELDIAG+6, DIALOG_STYLE_LIST, "Choose a weapon", "Brass Knuckles\nGolf Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nDildo\nVibrator\nFlowers\nCane\nGrenade\nTeargas\nMolotov\nColt 45\nSilenced Pistol\nDeagle\nShotgun\nSawn-Off\nSpas\nUzi\nMP5\nAK47\nM4\nTec9\nRifle\nSniper", "Select", "Back");
return SendClientMessage(playerid, WHITE, "{FF0000}>> This weapon is disabled!");
}