vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, can someone explain me how to do it?
I found script for good casino npc on brazil forum, but i was try make he's messages with two languages but i have problem with one message
It's npc handler with welcome message
and i was try
But i get error "attempt to index local 'player' (a nil value)
I was try add local player = Player(cid) before if
But still not working, how to make two welcome messages and send only one if i have X storage?
I found script for good casino npc on brazil forum, but i was try make he's messages with two languages but i have problem with one message
It's npc handler with welcome message
Code:
npcHandler:setMessage(MESSAGE_GREET, 'Olá |PLAYERNAME|, você quer apostar no cassino? Diga L para 1-3, H para 4-6.')
and i was try
Code:
if player:getStorageValue(language_storage) == 0 then
npcHandler:setMessage(MESSAGE_GREET, 'test1')
elseif player:getStorageValue(language_storage) == 1 then
npcHandler:setMessage(MESSAGE_GREET, 'test2')
end
But i get error "attempt to index local 'player' (a nil value)
I was try add local player = Player(cid) before if
But still not working, how to make two welcome messages and send only one if i have X storage?