28.05.2012, 17:34
Lines:
Errors:
Error lines:
HELP ME PLEASE
(
pawn Код:
if(dialogid == 382)// bancomat extrage
{
if(response == 1)
{
if(!strlen(inputtext))
{
SendClientMessage(playerid,COLOR_GREY," Nu ati tastat suma !");
return 1;
}
new cashdeposit = strval(inputtext);
if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nu aveti asa mult !");
return 1;
}
//ConsumingMoney[playerid] = 1;
new proc = (cashdeposit*5)/100;
new bani = cashdeposit-proc;
new string[500];
SafeGivePlayerMoney(playerid,bani);
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-bani-proc;
format(string, sizeof(string), " Ati scos suma de %d RON din contul dumneavoastra. Total Cont: %d RON. Va multumim pentru ca ati folosit bancomatul!", bani,PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
BizzInfo[3][bTill] += proc;
BizzInfo[4][bTill] += proc;
BizzInfo[18][bTill] += proc;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Va multumim pentru ca ati folosit bancomatul!");
}
return 1;
}
}
pawn Код:
D:\Lucru\1.3 samp 0.3e\gamemodes\inaintedetaxi2.pwn(59315) : warning 225: unreachable code
D:\Lucru\1.3 samp 0.3e\gamemodes\inaintedetaxi2.pwn(59350) : error 054: unmatched closing brace ("}")
pawn Код:
59315: if(dialogid == 382)// bancomat extrage
pawn Код:
59350: ->the last bracket }
![Sad](images/smilies/sad.gif)