Problem with dini_Get
#1

This is the line:

pawn Code:
HouseInfo[houseid][hOwner] = dini_Get(file, "Owner");
This is the error:

pawn Code:
error 006: must be assigned to an array
Reply
#2

pawn Code:
new owner[20];
owner = dini_Get(file, "Owner");
strmid(HouseInfo[houseid][hOwner], owner, 0, sizeof(owner));
Try that.
Reply
#3

Can you show your "enum" ? This where you define the variable HouseInfo.
Reply
#4

pawn Code:
array sizes do not match, or destination array is too small
This line:

pawn Code:
owner = dini_Get(file, "Owner");
pawn Code:
enum hInfo
{
    Float:hEntrancex,
    Float:hEntrancey,
    Float:hEntrancez,
    Float:hExitx,
    Float:hExity,
    Float:hExitz,
    hInterior,
    hVirtualWorld,
    hPickup,
    hOwned,
    hOwner,
    Text3D:hLabel,
    hPrice,
    hDescription,
    hExist
}
Reply
#5

format(HouseInfo[houseid][hOwner],MAX_PLAYER_NAME, "%s",dini_Get(file, "Owner"));
Reply
#6

CAR, you rock, once again, thanks
Reply
#7

No problem
Reply
#8

pawn Code:
enum hInfo
{
    Float:hEntrancex,
    Float:hEntrancey,
    Float:hEntrancez,
    Float:hExitx,
    Float:hExity,
    Float:hExitz,
    hInterior,
    hVirtualWorld,
    hPickup,
    hOwned,
    hOwner[MAX_PLAYER_NAME],   //  <====
    Text3D:hLabel,
    hPrice,
    hDescription,
    hExist
}
I think this would have worked too, or am I wrong?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)