waqmaz
Member
- Joined
- Jun 17, 2015
- Messages
- 203
- Reaction score
- 11
I know that it should be asked for example using stackoverflow, but it can be a curiosity for many otland users.
To avoid this problem I always do something like this:
But I do not like to do it that way, because the code looks ugly.
My question is: is there any other way I can display the text only one time? Thanks.
Code:
for i=1,5 do
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Text 5 times.')
end
Code:
local i = 0
for i=1,5 do
i = i + 1
if i == 1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Text 1 time.')
end
end
My question is: is there any other way I can display the text only one time? Thanks.