Team stats ( kills )

Started by dEaN, Nov 24, 2015, 07:11 AM

Previous topic - Next topic

dEaN

hey guys, i am  Confused about function
my mean how i make team kill, i mean cuban: 10 , sharks : 14................ , & how i save in DB (Teamkill)
I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-

jayant

If you know a little scripting,then these steps may help you -

1) Create a database that hold all the teams ( Cuban,haitian and others ).
2) Create a function that will detect which team's player just killed and then +1 to the team's kill.

The above is similar to saving stats of a player,you can now try yourself and ofcourse you can come and ask here for help.

Regards.

dEaN

can you explain me! jayant
I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-

KAKAN

He means to create a database holding the teams

Something like this:-
function onScriptLoad(){
jaja <- ConnectSQL("Noob.db");
QuerySQL(jaja,"CREATE TABLE IF NOT EXISTS( Team1 INT, Team2 INT, noob1 INT");
}

Now make a  array to hold the kills and deaths.
Update the table when someone leaves, or wherever you want.

The system is ready :)

Hint:- See FAS, and then construct a similar thing like that(fas).
oh no

Thijn

If you actually give a name to the table in the example @KAKAN gave that should give you an idea.

dEaN

successful! Thank you very Mutch to all of you!
Spaical thanks kusanagi!
-Topic locked-
I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-