View Single Post
Old 17/02/2015, 09:11 PM   #4
Alvin007
Huge Clucker
 
Alvin007's Avatar
 
Join Date: Mar 2011
Location: Tunisia
Posts: 245
Reputation: 9
Default Re : Creating a function

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 Code:
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);
             } 
Code:
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 (c) 1997-2006, ITB CompuPhase


2 Errors.
__________________
Alvin007 is offline   Reply With Quote