11.10.2014, 02:08
Your missing a bracket for case 0.
It should be this:
It should be this:
pawn Код:
if(dialogid == 12)
{
if(!response)
return 1;
switch(listitem)
{
case 0:
{
if(500 < 0) return SendClientMessage(playerid, COLOR_GREEN, "Invalid amount.");
GiveBankMoney(playerid, 500);
GiveMoney(playerid, -500);
}
case 1:
{
if(amount < 0) return SendClientMessage(playerid, COLOR_GREEN, "Invalid amount.");
GiveMoney(playerid, -amount);
GiveBankMoney(playerid, amount);
}
case 2:
{
if(amount < 0) return SendClientMessage(playerid, COLOR_GREEN, "Invalid amount.");
GiveMoney(playerid, amount);
GiveBankMoney(playerid, -amount);
}
case 3:
{
if(amount < 0) return SendClientMessage(playerid, COLOR_GREEN, "Invalid amount.");
GiveMoney(playerid, -amount);
GiveSavings(playerid, amount);
}
case 4:
{
if(amount < 0) return SendClientMessage(playerid, COLOR_GREEN, "Invalid amount.");
GiveMoney(playerid, amount);
GiveSavings(playerid, -amount);
}
case 5:
{
if(amount < 0) return SendClientMessage(playerid, COLOR_GREEN, "Invalid amount.");
GivePlayerMoney(playerid, -100000);
}
}
}
return 1;
}