March 28, 2024, 08:04:09 pm

Author Topic: [SQLite]Oka wtf  (Read 1280 times)

0 Members and 1 Guest are viewing this topic.

Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
[SQLite]Oka wtf
« 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?
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: [SQLite]Oka wtf
« Reply #1 on: February 04, 2012, 05:10:08 pm »
Bumpity Bump.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Thijn

  • Forum Administrator
  • Crazy Man
  • *
  • *
  • *
  • Posts: 2946
  • Country: nl
    • View Profile
Re: [SQLite]Oka wtf
« Reply #2 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 )
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

I'm not totally useless,
I can be used as an bad example ;)

"Never do Today, What you can do Tomorrow"


morphine

  • Crazy Man
  • *****
  • Posts: 1908
  • Country: lt
    • View Profile
Re: [SQLite]Oka wtf
« Reply #3 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?
« Last Edit: February 05, 2012, 03:26:17 am by Morphine »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: [SQLite]Oka wtf
« Reply #4 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.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light