How to make this shorter?
#4

PHP код:
if(PlayerInfo[targetid][pPhoneBook] == PlayerInfo[targetid][pLottoNr] == PlayerInfo[targetid][pScrew] == PlayerInfo[targetid][pFishes] == PlayerInfo[targetid][pBriefCase] == PlayerInfo[targetid][pWSeeds] == PlayerInfo[targetid][pBlindfolds] == PlayerInfo[targetid][pCrack] == PlayerInfo[targetid][pPot] == PlayerInfo[targetid][pAdrenaline] == PlayerInfo[targetid][pMats] == PlayerInfo[targetid][pMats] == PlayerInfo[targetid][pMatsc] == PlayerInfo[targetid][pProducts] == PlayerInfo[targetid][pDice] == PlayerInfo[targetid][pDeck] == 0) return SendClientMessage(playerid0xFFFFFFFF"* Your inventory is empty"); 
Try this. This is faster and shorter, faster is meant by the speed of executing this code.

EDIT: Try this, i have did some edits in this.

PHP код:
if(PlayerInfo[targetid][pPhoneBook] == PlayerInfo[targetid][pLottoNr] == PlayerInfo[targetid][pScrew] == \
PlayerInfo[targetid][pFishes] == PlayerInfo[targetid][pBriefCase] == PlayerInfo[targetid][pWSeeds] == \
PlayerInfo[targetid][pBlindfolds] == PlayerInfo[targetid][pCrack] == PlayerInfo[targetid][pPot] ==\
PlayerInfo[targetid][pAdrenaline] == PlayerInfo[targetid][pMats] == PlayerInfo[targetid][pMats] ==\
PlayerInfo[targetid][pMatsc] == PlayerInfo[targetid][pProducts] == PlayerInfo[targetid][pDice] ==\
PlayerInfo[targetid][pDeck] == 0) return SendClientMessage(playerid0xFFFFFFFF"* Your inventory is empty"); 
Reply


Messages In This Thread
How to make this shorter? - by MayaEU - 19.07.2016, 18:03
Re: How to make this shorter? - by d1git - 19.07.2016, 18:16
Re: How to make this shorter? - by MayaEU - 19.07.2016, 18:20
Re: How to make this shorter? - by Logic_ - 19.07.2016, 18:21
Re: How to make this shorter? - by d1git - 19.07.2016, 18:24
Re: How to make this shorter? - by Logic_ - 19.07.2016, 18:28
Re: How to make this shorter? - by K0P - 19.07.2016, 18:37
Re: How to make this shorter? - by Logic_ - 19.07.2016, 18:42
Re: How to make this shorter? - by K0P - 19.07.2016, 18:46
Re: How to make this shorter? - by d1git - 19.07.2016, 20:09

Forum Jump:


Users browsing this thread: 1 Guest(s)