06.02.2012, 16:23
Why you have 2x "if(response)" ??
pawn Код:
case DIALOG_WEAPONS:
{
if( response )
{
switch( listitem )
{
case 0:
{
if(GetPlayerMoney(playerid) <= 1000);
{
echo(playerid,COLOR_DARKRED,"You have not enough money!");
}
else
{
GivePlayerWeapon(playerid, WEAPON_MP5, 50);
echo(playerid,COLOR_BLUE,"You baught a MP5 with 50 rounds of ammo!");
}
}