Need Help with Dialogresponse
#2

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));
        }
    }
}
Try that
Reply


Messages In This Thread
Need Help with Dialogresponse - by Shinoda90 - 05.01.2010, 20:01
Re: Need Help with Dialogresponse - by LarzI - 05.01.2010, 20:09
Re: Need Help with Dialogresponse - by Shinoda90 - 05.01.2010, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)