[Dialog] - Question some problem.
#2

No apparent problem ...
pawn Код:
if(dialogid == PDLICENCI)
{
    if(response)
    {
        switch(listitem
        {
            case 0:
            {
                if(PlayerInfo[playerid][pGunLic] == 0)
                {
                    SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Kupili ste dozvolu za oruzje za {00B9FF}$5000");
                    SafeGivePlayerMoney(playerid, - 5000);
                    PlayerInfo[playerid][pGunLic] = 1;
                    OnPlayerUpdateCustom(playerid);
                }
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Ti veke imas kupeno {00B9FF}licenca.");
            }
            case 1:
            {
                if(PlayerInfo[playerid][pFishLic] == 0)
                {
                    SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Kupili ste dozovlu za ribolov za {00B9FF}$2000");
                    SafeGivePlayerMoney(playerid, - 2000);
                    PlayerInfo[playerid][pFishLic] = 1;
                    OnPlayerUpdateCustom(playerid);
                }
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Ti veke imas kupeno {00B9FF}licenca.");
            }
        }
    }
}
Reply


Messages In This Thread
[Dialog] - Question some problem. - by GBLTeam - 24.04.2012, 18:03
Re: [Dialog] - Question some problem. - by ViniBorn - 24.04.2012, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)