Ecstacy
Mothafuckaaa
Hey,
I got a question about how to make this string only work if the local exists.
That's the string i'm using but I want it only to send '..getItemNameById(r.loot[~])..' if it exists.
so if r.loot[2] doesn't exist it should send '.' instead of 'getItemNameById(r.loot[2])'.
Thanks in advance,
unknown666
I got a question about how to make this string only work if the local exists.
LUA:
doPlayerSendTextMessage(cid,27,'Loot of '..r.article..' '..r.name..': '..getItemNameById(r.loot[1])..','..getItemNameById(r.loot[2])..','..getItemNameById(r.loot[3])..'.')
That's the string i'm using but I want it only to send '..getItemNameById(r.loot[~])..' if it exists.
so if r.loot[2] doesn't exist it should send '.' instead of 'getItemNameById(r.loot[2])'.
Thanks in advance,
unknown666