05.07.2014, 07:36
Код:
case 0: { new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); if(strcmp(playername, BizzInfo[PlayerInfo[playerid][pPbiskey]][bOwner], true) == 0) { new coordsstring[1024]; new targetid; format(coordsstring, sizeof(coordsstring), "{FFFFFF}*** %s ***\n\nLocked: %d\nEntryFee: $%d\nTill: $%d\nProducts: %d/%d\nExtortion By: %s\n\n", BizzInfo[targetid][bMessage], BizzInfo[targetid][bLocked], BizzInfo[targetid][bEntranceCost], BizzInfo[targetid][bTill], BizzInfo[targetid][bProducts],BizzInfo[targetid][bMaxProducts], BizzInfo[targetid][bExtortion]); ShowPlayerDialog( playerid, 6518, DIALOG_STYLE_MSGBOX, "SERVER: Info Business", coordsstring, "Ok", "Return"); } else if(PlayerInfo[playerid][pPbiskey] >= 100 && strcmp(playername, SBizzInfo[PlayerInfo[playerid][pPbiskey]-100][sbOwner], true) == 0) { new coordsstringi[1024]; new targetid; new bouse = PlayerInfo[playerid][pPbiskey]-100; format(coordsstringi, sizeof(coordsstringi), "{FFFFFF}*** %s ***\n\nLocked: %d\nEntryFee: $%d\nTill: $%d\nProducts: %d/%d\nExtortion By: %s\n\n", SBizzInfo[targetid][sbMessage], SBizzInfo[targetid][sbLocked], SBizzInfo[targetid][sbEntranceCost], SBizzInfo[targetid][sbTill], SBizzInfo[targetid][sbProducts],SBizzInfo[targetid][sbMaxProducts], SBizzInfo[bouse][sbExtortion]); ShowPlayerDialog( playerid, 6519, DIALOG_STYLE_MSGBOX, "SERVER: Info Business", coordsstringi, "Ok", "Return"); } }