View Single Post
Old 18/02/2015, 02:22 PM   #8
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,772
Reputation: 854
Default Re: Re : Creating a function

ChangeBizInfo have 2 params as per your code, so no need to modify it while implementing. Here you go:

PHP Code:
if(BusinessInfo[id][bLocked]==1)
            {
                 
BusinessInfo[id][bLocked]=0;
                 
GameTextForPlayer(playerid"Biz ~g~unlocked!"50003);
                
ChangeBizInfo(id,BusinessInfo[id][bName]);
             }
            else if(
BusinessInfo[id][bLocked]==0)
            {
                 
BusinessInfo[id][bLocked]=1;
                 
GameTextForPlayer(playerid"Biz ~r~locked!"5003);
                 
ChangeBizInfo(id,BusinessInfo[id][bName]);
             } 
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:

Gammix is offline   Reply With Quote