05.01.2010, 20:09
pawn Код:
if(dialogid == 301)
{
new targetid;
new cash2 = GetPlayerMoney(targetid);
new kontotemp[128];
if(strlen(inputtext))
{
strmid(kontotemp, inputtext, 0, strlen(inputtext), 128);
if(cash2 < strval(kontotemp))
{
SendClientMessage(playerid, COLOR_YELLOW, "You do not have enough money.");
}
else
{
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]+strval(kontotemp);
GivePlayerMoney(playerid, -strval(kontotemp));
}
}
}