Creating a function
#8

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

PHP код:
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]);
             } 
Reply


Messages In This Thread
Creating a function - by Alvin007 - 17.02.2015, 20:18
Re: Creating a function - by HazardouS - 17.02.2015, 20:40
Re: Creating a function - by CalvinC - 17.02.2015, 20:42
Re : Creating a function - by Alvin007 - 17.02.2015, 21:11
Re: Creating a function - by CalvinC - 17.02.2015, 21:24
Re : Creating a function - by Alvin007 - 17.02.2015, 21:34
Re : Creating a function - by Alvin007 - 18.02.2015, 10:48
Re: Re : Creating a function - by Gammix - 18.02.2015, 13:22
Re : Creating a function - by Alvin007 - 19.02.2015, 11:08
Re: Re : Creating a function - by Excel™ - 19.02.2015, 11:34

Forum Jump:


Users browsing this thread: 2 Guest(s)