Creating a function
#4

Thanks alot guys, +REP.
But could you please solve this problem.
The function worked fine for changing the business' name.
But not working fine in here:
PHP код:
if(BusinessInfo[id][bLocked]==1)
            {
                 
BusinessInfo[id][bLocked]=0;
                 
GameTextForPlayer(playerid"Biz ~g~unlocked!"50003);
                
ChangeBizInfo(id,BusinessInfo[id][bName],playerid);
             }
            else if(
BusinessInfo[id][bLocked]==0)
            {
                 
BusinessInfo[id][bLocked]=1;
                 
GameTextForPlayer(playerid"Biz ~r~locked!"5003);
                 
ChangeBizInfo(id,BusinessInfo[id][bName],playerid);
             } 
Код:
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn(779) : error 047: array sizes do not match, or destination array is too small
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn(785) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
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: 1 Guest(s)