Vice Underdogs

Scripting => Scripting Support => Topic started by: Zeke on February 03, 2012, 08:09:34 pm

Title: [SQLite]Oka wtf
Post 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?
Title: Re: [SQLite]Oka wtf
Post by: Zeke on February 04, 2012, 05:10:08 pm
Bumpity Bump.
Title: Re: [SQLite]Oka wtf
Post by: Thijn on February 05, 2012, 12:06:47 am
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 )
Title: Re: [SQLite]Oka wtf
Post by: morphine on February 05, 2012, 03:23:37 am
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?
Title: Re: [SQLite]Oka wtf
Post by: Zeke on February 05, 2012, 01:15:28 pm
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.