Vice Underdogs
Scripting => Scripting Support => Topic started by: Zeke on February 03, 2012, 08:09:34 pm
-
http://liberty-unleashed.co.uk/VCWiki/Scripting/Squirrel/Examples/SQLite
So, I'm trying to build a stats system on a SQLite database.
Everything works perfectly except for the "Kills".
I've done exactly what it says in the wiki and still no shit.
The problem is wen a player kills another player the Kills don't change they stay at 0 neither the victim's deaths.
But if the player dies ( drowns, falls to death) the deaths do change.
I've looked at the code a million times now, and I don't see anything unusual.
Could it be something wrong in the wiki?
-
Bumpity Bump.
-
I think its because onplayerkill has a new bodypart parameter. Use "onplayerkill( killer, player, weapon, bodypart)" and it should work. ( unless it needs capitals, but you will find out :p )
-
It'd call a missing parameter error in that case, wouldn't it?
It did a million times for me on onPlayerMove once. :p
Did you get any errors in the console when someone killed you, Zeke?
-
Yes I actually did get an error, but it dint give any info about where the error is on what line or something.
Something about a missing parameter if I remember correctly.
Anyways Thank You Thijn that actually worked.