Bracket help
#2

pawn Code:
CMD:bizstats(playerid, params[])
{
    new string[128], status[16], status2[16];
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pBiz]) format(status, sizeof(status), "%s", RBS(PlayerInfo[playerid][pBiz]));
    if(!PlayerInfo[playerid][pBiz]) format(status, sizeof(status), "None");

    if(PlayerInfo[playerid][pVBiz]) format(status2, sizeof(status2), "%s", RBS(PlayerInfo[playerid][pVBiz]));
    if(!PlayerInfo[playerid][pVBiz]) format(status2, sizeof(status2), "None");
   
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________________________");
    format(string, sizeof(string), "Businesses of %s", GetPlayerNameEx(playerid));
    SendClientMessage(playerid, COLOR_ORANGE, string);
    format(string, sizeof(string), "Business 1: %s | ID: %s | Level: %s | Status: %s | Products: %s | Vault: %s", RBT(PlayerInfo[playerid][pBiz]), RPBK(playerid), RPBL(playerid),status, RPBP(playerid), RPBM(playerid));
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Business 2: %s | ID: %s | Level: %s | Status: %s | Products: %s | Vault: %s", RBT(PlayerInfo[playerid][pVBiz]), RPVIPBK(playerid), RPVIPBL(playerid),status2, RPVIPBP(playerid), RPVIPBM(playerid));
    SendClientMessage(playerid, COLOR_FADE2, string);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________________________");
    }
        }
    return 1;
}
pawn Code:
CMD:bizstats(playerid, params[])
{
    new string[128], status[16], status2[16];
        if(!IsPlayerConnected(playerid))
        return SendClientMessage(playerid,COLOR_RED,"Player not connected!");

    if(PlayerInfo[playerid][pBiz]) format(status, sizeof(status), "%s", RBS(PlayerInfo[playerid][pBiz]));
    if(!PlayerInfo[playerid][pBiz]) format(status, sizeof(status), "None");

    if(PlayerInfo[playerid][pVBiz]) format(status2, sizeof(status2), "%s", RBS(PlayerInfo[playerid][pVBiz]));
    if(!PlayerInfo[playerid][pVBiz]) format(status2, sizeof(status2), "None");
   
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________________________");
    format(string, sizeof(string), "Businesses of %s", GetPlayerNameEx(playerid));
    SendClientMessage(playerid, COLOR_ORANGE, string);
    format(string, sizeof(string), "Business 1: %s | ID: %s | Level: %s | Status: %s | Products: %s | Vault: %s", RBT(PlayerInfo[playerid][pBiz]), RPBK(playerid), RPBL(playerid),status, RPBP(playerid), RPBM(playerid));
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Business 2: %s | ID: %s | Level: %s | Status: %s | Products: %s | Vault: %s", RBT(PlayerInfo[playerid][pVBiz]), RPVIPBK(playerid), RPVIPBL(playerid),status2, RPVIPBP(playerid), RPVIPBM(playerid));
    SendClientMessage(playerid, COLOR_FADE2, string);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________________________");
    }
    return 1;
}
Reply


Messages In This Thread
Bracket help - by Lidor124 - 11.01.2014, 14:01
Re: Bracket help - by Eth - 11.01.2014, 14:06
Re: Bracket help - by Lidor124 - 11.01.2014, 14:53
Re: Bracket help - by offon - 11.01.2014, 15:08
Re: Bracket help - by Lidor124 - 11.01.2014, 15:22
Re: Bracket help - by MatriXgaMer - 11.01.2014, 15:30
Re: Bracket help - by iFiras - 11.01.2014, 15:38
Re: Bracket help - by Lidor124 - 11.01.2014, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)