Quote:
Originally Posted by Bugsy
arrayset() would cover the entire array, I'm not sure how only resetting certain indexes would matter.
|
I'm not sure, but wouldn't it have to do with how the Array was created in the first place? Or destroying it when required?
EDIT: Something like this?
PHP Code:
new Array:g_iBought;
public plugin_init()
{
g_iBought = ArrayCreate(MAX_PLAYERS + 1);
}
public plugin_end()
{
ArrayDestroy(g_iBought);
}
PHP Code:
g_bComprado[ id ] ++;
ArrayPushArray(g_iBought, g_bComprado); // bought
ArrayClear(g_iBought); // new round
__________________