• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

boolen ...

xavierek

New Member
Joined
Apr 11, 2009
Messages
209
Reaction score
0
for i = 1,7 do

win_skill = 0
loss_skill = 0


win_skill = getPlayerSkill(attacker, i)
loss_skill = getPlayerSkill(cid, i)

print("Skill : "..win_skill.."") < -- return on console [01/04/2011 14:13:51] data/creaturescripts/scripts/dd.lua:46: attempt to concatenate field '?' (a boolean value)
i = i+1

end

if i made script oggly like print (""..getPlayerSkill(cid, 2).."") its work wtf :p?

if i use win_skill[2] or other index numer or loss array its dont work ;/ same error

some one can help why i need it in int ;) i need add it to DbMysql
 
Last edited:
I don't know that you want some thing like that:
Lua:
for i = 1,7 do
	win_skill = 0
	loss_skill = 0

	win_skill = getPlayerSkill(attacker, i)
	loss_skill = getPlayerSkill(cid, i)

	print("Skill : "..win_skill .."")
	i = i+1
end
 
PHP:
				print ("Skill l 1: "..loss_skill[1].."")
							win_skill[1] = ""..getPlayerSkill(attacker, 1)..""
						print ("Skill w 1: "..win_skill[1].."")
						loss_skill[2] = ""..getPlayerSkill(cid, 2)..""
						print ("Skill l 2: "..loss_skill[2].."")
							win_skill[2] = ""..getPlayerSkill(attacker, 2)..""
						print ("Skill w 2: "..win_skill[2].."")
						loss_skill[3] = ""..getPlayerSkill(cid, 3)..""
						print ("Skill l 3: "..loss_skill[3].."")
							win_skill[3] = ""..getPlayerSkill(attacker, 3)..""
						print ("Skill w 3: "..win_skill[3].."")
						loss_skill[4] = ""..getPlayerSkill(cid, 4)..""
						print ("Skill l 4: "..loss_skill[4].."")
							win_skill[4] = ""..getPlayerSkill(attacker, 4)..""
						print ("Skill w 4: "..win_skill[4].."")
						loss_skill[5] = ""..getPlayerSkill(cid, 5)..""
						print ("Skill l 5: "..loss_skill[5].."")
							win_skill[5] = ""..getPlayerSkill(attacker, 5)..""
						print ("Skill w 5: "..win_skill[5].."")
						loss_skill[6] = ""..getPlayerSkill(cid, 6)..""
						print ("Skill l 6: "..loss_skill[6].."")
							win_skill[6] = ""..getPlayerSkill(attacker, 6)..""
						print ("Skill w 6: "..win_skill[6].."")


its stupid bat work xD
 
Lua:
local win_skill, loss_skill = {}, {}

for i = 1,7 do
	table.insert(win_skill, i, getPlayerSkill(attacker, i))
	table.insert(loss_skill, i, getPlayerSkill(cid, i))
 
	print("Skill : "..win_skill[i] .."")
end
 
Back
Top