vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, i have problem with that function
Cuz i have in "local" ~20 items, but that function, creating every time first 12 items from list, not from random 20 items
And second question, its possible to create message with items names all after "," not one by one?
Currently i have:
09:10 [Items] NAME1
09:10 [Items] NAME2
09:10 [Items] NAME3
but i want
09:10 [Items] NAME1, NAME2, NAME3
its possible?
Code:
function test(cid, item, pos)
for i = 1, #locations do
for i = 1, #itemsshop do
doCreateItem(itemsshop[i].id, 1, locations[i])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Items] " .. itemsshop[i].name .. ".")
end
end
end
return true
end
Cuz i have in "local" ~20 items, but that function, creating every time first 12 items from list, not from random 20 items
And second question, its possible to create message with items names all after "," not one by one?
Currently i have:
09:10 [Items] NAME1
09:10 [Items] NAME2
09:10 [Items] NAME3
but i want
09:10 [Items] NAME1, NAME2, NAME3
its possible?