Enums and Arrays
#1

I created an Enum and some variables are arrays. When I try to reset these variables to "", I get an error.
pawn Код:
enum playerInfo
{
    var1[16],
    var2[145],
    var3[20];
}

new pInfo[MAX_PLAYERS][playerInfo];

//In some callback
pInfo[playerid][var1] = ""; //line 1093
pInfo[playerid][var2] = ""; //line 1094
pInfo[playerid][var3] = ""; //line 1095
pawn Код:
(1093) : error 047: array sizes do not match, or destination array is too small
(1094) : error 047: array sizes do not match, or destination array is too small
(1095) : error 047: array sizes do not match, or destination array is too small
Reply


Messages In This Thread
Enums and Arrays - by Th3Angel - 14.02.2011, 20:50
Re: Enums and Arrays - by Mauzen - 14.02.2011, 21:26
Re: Enums and Arrays - by Th3Angel - 14.02.2011, 22:23
Re: Enums and Arrays - by PowerPC603 - 14.02.2011, 22:33
Re: Enums and Arrays - by Th3Angel - 14.02.2011, 22:41
Re: Enums and Arrays - by Mauzen - 14.02.2011, 23:27
Re: Enums and Arrays - by Th3Angel - 14.02.2011, 23:46

Forum Jump:


Users browsing this thread: 3 Guest(s)