• 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!

Sql Query !

dukzin

New Member
Joined
Aug 18, 2008
Messages
161
Reaction score
3
Hello OTland :D

i'm using this query to remove all frags of all persons.

"DELETE FROM `killers` WHERE `unjustified` = 1;"

can someone tell me how can i remove only 1 frag of all persons.

;s

thanks.

i'll Rep ++!
 
dont remove anything and it broadcast almost 15 times
o.o
;s
LOL, why? is there 15 players online?
try this:
Code:
function onThink(inerval, lastExecution)
	for _, cid in ipairs(getPlayersOnline()) do
		db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` = "..getPlayerGUID(cid).." LIMIT 1;")
		doBroadcastMessage("Everybody Lost 1 Frag. Next remotion in 1 hours.")
                break
	end
	return true
end
 
Code:
function onThink(inerval, lastExecution)
	for _, cid in ipairs(getPlayersOnline()) do
		db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` = "..getPlayerGUID(cid).." LIMIT 1;")
	end
	doBroadcastMessage("Everybody Lost 1 Frag. Next remotion in 1 hours.")
	return true
end
 
Code:
function onThink(inerval, lastExecution)
	for _, cid in ipairs(getPlayersOnline()) do
		db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` = "..getPlayerGUID(cid).." LIMIT 1;")
	end
	doBroadcastMessage("Everybody Lost 1 Frag. Next remotion in 1 hours.")
	return true
end
not nice :p
 
LOL, why? is there 15 players online?
try this:
Code:
function onThink(inerval, lastExecution)
	for _, cid in ipairs(getPlayersOnline()) do
		db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` = "..getPlayerGUID(cid).." LIMIT 1;")
		doBroadcastMessage("Everybody Lost 1 Frag. Next remotion in 1 hours.")
                [B][COLOR="Red"]break[/COLOR][/B]
	end
	return true
end
You're doing it wrong ^_^
 
Back
Top