02.04.2013, 16:59
Comment out the "Marine/Trooper, etc."
Do that for all them, so add // before them.
Im pretty sure you can't have:
So basically:
pawn Код:
//Trooper
Im pretty sure you can't have:
pawn Код:
case 0: Trooper
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CLASS)
{
if(response)
{
switch(listitem)
{
case 0:// Soldier
{
GivePlayerWeapon(playerid,24,300);
GivePlayerWeapon(playerid,27,300);
GivePlayerWeapon(playerid,31,300);
}
case 1: //Sniper
{
GivePlayerWeapon(playerid,25,300);
GivePlayerWeapon(playerid,34,100);
GivePlayerWeapon(playerid,39,10);
}
case 2:// Engineer
{
GivePlayerWeapon(playerid,29,300);
GivePlayerWeapon(playerid,36,5);
GivePlayerWeapon(playerid,16,5);
}
case 3: //Scout
{
GivePlayerWeapon(playerid,22,300);
GivePlayerWeapon(playerid,32,300);
GivePlayerWeapon(playerid,16,5);
}
case 4:// Pilot
{
GivePlayerWeapon(playerid,30,300);
GivePlayerWeapon(playerid,24,300);
GivePlayerWeapon(playerid,33,300);
}
case 5: //Suicider
{
GivePlayerWeapon(playerid,16,8);
GivePlayerWeapon(playerid,30,300);
GivePlayerWeapon(playerid,37,200);
}
case 6: //Rebel
{
GivePlayerWeapon(playerid,24,300);
GivePlayerWeapon(playerid,34,300);
GivePlayerWeapon(playerid,4,1);
}
case 7: //Assassin
{
GivePlayerWeapon(playerid,18,5);
GivePlayerWeapon(playerid,27,300);
GivePlayerWeapon(playerid,22,300);
}
case 8: //Burglar
{
GivePlayerWeapon(playerid,8,1);
GivePlayerWeapon(playerid,23,300);
GivePlayerWeapon(playerid,25,300);
}
case 9: //Trooper
{
GivePlayerWeapon(playerid,18,5);
GivePlayerWeapon(playerid,22,300);
GivePlayerWeapon(playerid,9,1);
}
case 10: //Marine
{
GivePlayerWeapon(playerid,42,80);
GivePlayerWeapon(playerid,34,300);
GivePlayerWeapon(playerid,31,300);
}
}
}
}
return 0;
}