Shop cmd doesn't work -
#6

The problem isn't on formating the problem is he is not in 24/7 supa shop also the command doesn't have error message so he didn't realize that.

just add error message for player in case he is not in interior 182 and you will see its working fine >>

PHP код:
COMMAND:shop(playeridparams[])
{
    if(
GetPlayerInterior(playerid) == 182)
    {
        new 
supaSave[750];
        
strcat(supaSave"\n{D87C3E}$1,000      {FFFFFF}1x Rope {FFBF00}(Saves)");
        
strcat(supaSave"\n{D87C3E}$9,000      {FFFFFF}10x Ropes {FFBF00}(Saves)");
        
strcat(supaSave"\n{D87C3E}$2,500      {FFFFFF}1x Scissor {FFBF00}(Saves)");
        
strcat(supaSave"\n{D87C3E}$20,00      {FFFFFF}10x Scissors {FFBF00}(Saves)");
        
strcat(supaSave"\n{D87C3E}$2,000      {FFFFFF}1x Bobby Pins {FFBF00}(Saves)");
        
strcat(supaSave"\n{D87C3E}$18,00      {FFFFFF}10x Bobby Pins {FFBF00}(Saves)");
        
strcat(supaSave"\n{D87C3E}$15,000     {FFFFFF}Backpack {FFBF00}(Saves)");
        
strcat(supaSave"\n{D87C3E}$5,000      {FFFFFF}Bigger Pocket");
        
strcat(supaSave"\n{D87C3E}$5,000      {FFFFFF}Secure Wallet");
        
strcat(supaSave"\n{D87C3E}$5,000      {FFFFFF}Butt Plug");
        
strcat(supaSave"\n{D87C3E}$25,000     {FFFFFF}Lucky Charm");
        
strcat(supaSave"\n{D87C3E}$10,000     {FFFFFF}Bomb Defusal Kit");
        
strcat(supaSave"\n{D87C3E}$5,000      {FFFFFF}Escapists Guide");
        
strcat(supaSave"\n{D87C3E}1 Token     {FFFFFF}XP Booster");
        
strcat(supaSave"\n{D87C3E}$250,0000   {FFFFFF}Buy Toys");
        if(
Player[playerid][english])
            
ShowPlayerDialog(playeridDIALOG_SUPADIALOG_STYLE_LIST"Supa Save"supaSave"Buy""Cancel");
        else
            
ShowPlayerDialog(playeridDIALOG_SUPADIALOG_STYLE_LIST"Supa Save"supaSave"Beli""Batal");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_RED,"ERROR: You need to be on 24/7 supa shop to use this command");
    }
    return 
1;

Reply


Messages In This Thread
Shop cmd doesn't work - - by Flaw - 27.08.2016, 02:46
Re: Shop cmd doesn't work - - by Dayrion - 27.08.2016, 04:23
Re: Shop cmd doesn't work - - by DeeadPool - 27.08.2016, 07:14
Re: Shop cmd doesn't work - - by DarkSkull - 27.08.2016, 07:38
Re: Shop cmd doesn't work - - by SickAttack - 27.08.2016, 07:44
Re: Shop cmd doesn't work - - by jlalt - 27.08.2016, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)