Reset structured array with integer/float/string fields
#2

Something like this would work.

pawn Код:
enum myStructure
{
    myVar1,
    myVar2,
    Float:myVar3,
    Float:myVar4,
    myVar5[10],
    myVar6[100],
    myVar7[100]
}
new myArray[MAX_PLAYERS][myStructure];
for ( new i; myStructure:i != myStructure; ++i )
{
    myArray[playerid][myStructure:i] = 0;
}
Reply


Messages In This Thread
Reset structured array with integer/float/string fields - by Programie - 04.03.2012, 15:21
Re: Reset structured array with integer/float/string fields - by T0pAz - 04.03.2012, 15:33
Re: Reset structured array with integer/float/string fields - by Zeex_ - 04.03.2012, 15:48
Re: Reset structured array with integer/float/string fields - by T0pAz - 04.03.2012, 15:52
Re: Reset structured array with integer/float/string fields - by Programie - 04.03.2012, 16:01
Re: Reset structured array with integer/float/string fields - by Jefff - 04.03.2012, 22:50
Re: Reset structured array with integer/float/string fields - by Programie - 05.03.2012, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)