Weird Problem about Arrays !!! Somebody tell me what's going on please..
#1

Код:
(3597) : error 047: array sizes do not match, or destination array is too small
(3598) : 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.
pawn Код:
enum Houses
{
    HouseName[64],
    HouseOwner[64],
    HouseLocation[64],
}
new HouseInfo[MAX_HOUSES][Houses];

//These scripts are the errors:
HouseInfo[h][HouseName] = "Unowned House";
HouseInfo[h][HouseOwner] = "Nobody";
Somebody tell me why are these codes giving me errors ? And why it got fixed if i make the codes like:
pawn Код:
new str[64];
format(str, sizeof(str), "Unowned House");
HouseInfo[h][HouseName] = str;
format(str, sizeof(str), "Nobody");
HouseInfo[h][HouseOwner] = str;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)