27.08.2016, 07:51
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 >>
just add error message for player in case he is not in interior 182 and you will see its working fine >>
PHP код:
COMMAND:shop(playerid, params[])
{
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(playerid, DIALOG_SUPA, DIALOG_STYLE_LIST, "Supa Save", supaSave, "Buy", "Cancel");
else
ShowPlayerDialog(playerid, DIALOG_SUPA, DIALOG_STYLE_LIST, "Supa Save", supaSave, "Beli", "Batal");
}
else
{
SendClientMessage(playerid, COLOR_RED,"ERROR: You need to be on 24/7 supa shop to use this command");
}
return 1;
}