boby psaico
Member
- Joined
- Oct 17, 2009
- Messages
- 84
- Reaction score
- 5
Hello guys
Well, how can i do a interval on array?
Example:
Current script:
I want something like this:
It's possible? Thanks
Well, how can i do a interval on array?
Example:
Current script:
Code:
local results = {
[1] = {
[1] = 2000,
[2] = 2000,
[3] = 2000,
[4] = 2000,
[5] = 2001,
},
}
SetPlayerStorageValue(cid, results[1][math.random(5)], 1)
I want something like this:
Code:
local results = {
[1] = {
[{1, 4}] = 2000, --- INTERVAL
[5] = 2001,
},
}
SetPlayerStorageValue(cid, results[1][math.random(5)], 1)
It's possible? Thanks
Last edited: