I need help !
#1

Guys, hi all.
I have a big problem.
Not show me the dialog when i type /clothes in ZIP store...
t
PHP код:
CMD:clothes(playerid,params[])
{
    if(
gPlayerLogged[playerid] == 0) return SendClientMessage(playeridCOLOR_LIGHTRED"You need to login first.");
    if(
IsAtClothShop(playerid))
    {
        if(
PlayerInfo[playerid][pMember] >= && PlayerInfo[playerid][pLeader] == 0)
        {
            if(
IsPlayerConnected(playerid))
            {
                if(
GetPlayerCash(playerid) < 1500) return SCM(playerid,COLOR_WHITE,"{ED2D20}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(playeridgInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                
SetPlayerFacingAngle(playeridgInviteSpawns[rand][3]);
                
SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                
SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                
TogglePlayerControllable(playerid0);
                
SelectChar[playerid] = 255;
                
SelectCharID[playerid] = PlayerInfo[playerid][pMember];
                
SelectCharPlace[playerid] = 1;
                
PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
                
ShowPlayerDialog(playeridDIALOG_CLOTHESDIALOG_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(stringsizeof(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
    {
        
SCM(playerid,COLOR_WHITE,"{ED2D20}You're not the clothing store.");
    }
    return 
1;

Reply


Messages In This Thread
I need help ! - by Sn4ke2 - 04.06.2015, 23:58
Re: I need help ! - by SoFahim - 05.06.2015, 05:15
Re: I need help ! - by Sn4ke2 - 05.06.2015, 09:46
Re: I need help ! - by JaydenJason - 05.06.2015, 13:04
Re: I need help ! - by J0sh... - 05.06.2015, 13:08
Re: I need help ! - by Konstantinos - 05.06.2015, 13:13
Re: I need help ! - by Sn4ke2 - 05.06.2015, 13:57
Re: I need help ! - by Sn4ke2 - 06.06.2015, 13:14
Re: I need help ! - by Yashas - 06.06.2015, 16:06
Re: I need help ! - by Sn4ke2 - 06.06.2015, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)