Jump to content

Question

Posted

Problema intalnita (descriere):  Problema intalnita (descriere): Cand intru in shop si dau /clothes imi arata mai multe skinuri , iar daca selectez unul dintre skin-uri , imi da un skin din factiune , cum pot sa remediez problema ? Multumesc anticipat
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu): Cred ca este de aici 

CMD:clothes(playerid,params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai.");
    if(IsAtClothShop(playerid))
    {
        if(PlayerInfo[playerid][pMember] >= 1)
        {
            if(IsPlayerConnected(playerid))
            {
                if(GetPlayerCash(playerid) < 1500) return SCM(playerid,COLOR_YELLOW2, "Error: You do not have enough money($1,500).");
                SBizzInfo[9][sbTill] += 1500;
                SBizzInfo[9][sbProducts]--;
                GivePlayerCash(playerid,-1500);
                new rand2 = random(5);
                SetPlayerVirtualWorld(playerid,rand2);
                SetPlayerInterior(playerid,0);
                new rand = random(sizeof(gInviteSpawns));
                SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
                SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                TogglePlayerControllable(playerid, 0);
                SelectChar[playerid] = 255;
                SelectCharID[playerid] = PlayerInfo[playerid][pMember];
                SelectCharPlace[playerid] = 1;
                PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
                ShowPlayerDialog(playerid, DIALOG_CLOTHES, DIALOG_STYLE_MSGBOX,"Clothes:", "Press 'Next' to select the clothes.\nPress 'Done' once you have chosen the clothes.","Next", "Done");
                new sendername[25],string[100];
                GetPlayerName(playerid,sendername,sizeof(sendername));
                format(string, sizeof(string), "UPDATE users SET Money='%d' WHERE name='%s'", GetPlayerCash(playerid), sendername);
                mysql_query(SQL,string);
                format(string,sizeof(string),"UPDATE `sbizz` SET `Till`='%d',`Products`='%d' WHERE `ID`='9'",SBizzInfo[9][sbTill],SBizzInfo[9][sbProducts]);
                mysql_query(SQL,string);
            }
        }
        else {
            ShowModelSelectionMenu (playerid, skinlist, "Haine");
        }
    }
    else
    {
        SCM(playerid,COLOR_YELLOW2, "Error: You're not the clothing store.");
    }
    return 1;


Imagini / Video (optional):http://imgur.com/a/A1Re9
Ati incercat sa rezolvati singur?:  Da 

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.