PHP Code:
for (new item_id = 0; item_id <= g_charcounter ; item_id++)
{
if(item_data[item_id][CHAR_TYPE] == TYPE_WEAPON || item_data[item_id][CHAR_TYPE] == TYPE_SHIELD){
client_printcolor(id, "/yItem /g%s /yget this item!", item_name[item_id] );
g_iPlayerItem[id][g_CurrentChar[id]][item_id]++;
}
}
I have these codes and these codes provides getting items. With this codes, I get 8 item in a certain order.
First item : A, second: B, ... last item:H (Total 8 item)
Request: I want to get only one item randomly that "g_iPlayerItem[id][g_CurrentChar[id]][item_id]++" code. Can you help me?