Raised This Month: $51 Target: $400
 12% 

[CS:S/CS:GO/TF2] shavit's bhoptimer (v2.5.5a 08/August/2019)


Post New Thread Reply   
 
Thread Tools Display Modes
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 07-17-2015 , 11:35   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.1b 29/June/2015)
Reply With Quote #41

When I try add zone i got error:

Quote:
L 07/17/2015 - 17:29:48: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 07/17/2015 - 17:29:48: [SM] Displaying call stack trace for plugin "shavit-zones.smx":
L 07/17/2015 - 17:29:48: [SM] [0] Line 711, shavit-zones.sp::InsertZone()
L 07/17/2015 - 17:29:48: [SM] [1] Line 673, shavit-zones.sp::CreateZoneConfirm_Handler()
L 07/17/2015 - 17:29:57: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 07/17/2015 - 17:29:57: [SM] Displaying call stack trace for plugin "shavit-zones.smx":
L 07/17/2015 - 17:29:57: [SM] [0] Line 711, shavit-zones.sp::InsertZone()
L 07/17/2015 - 17:29:57: [SM] [1] Line 673, shavit-zones.sp::CreateZoneConfirm_Handler()
Plugin create automaticly only "users" table. Plugin add users to table fine.

Plugin don't create 'mapzones' table. I try to create that table manualy (I copy from sourcecode sql_query to create table and paste it into phpmyadmin) but it still not working.

CS:GO
SourceMod Version: 1.7.2-dev+5202 and SourceMod Version: 1.7.2

I try version 1.1b from AM and 1.2b from GitHub
__________________


Last edited by live4net; 07-17-2015 at 12:33.
live4net is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-17-2015 , 15:18   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.1b 29/June/2015)
Reply With Quote #42

Quote:
Originally Posted by live4net View Post
When I try add zone i got error:



Plugin create automaticly only "users" table. Plugin add users to table fine.

Plugin don't create 'mapzones' table. I try to create that table manualy (I copy from sourcecode sql_query to create table and paste it into phpmyadmin) but it still not working.

CS:GO
SourceMod Version: 1.7.2-dev+5202 and SourceMod Version: 1.7.2

I try version 1.1b from AM and 1.2b from GitHub
Quote:
A MySQL database. Hosted at the same machine the CS server is hosted at. I won't help with any MySQL related errors if your MySQL server isn't local.
__________________
retired
shavit is offline
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 07-17-2015 , 15:25   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.1b 29/June/2015)
Reply With Quote #43

Yes, database is hosted on that same machine.
__________________

live4net is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-17-2015 , 16:05   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.2b 17/July/2015)
Reply With Quote #44

New version hype!

Quote:
1.2b - 17/July/2015:
~ shavit-core:
+ create a github repo (https://github.com/Shavitush/bhoptimer)
* make a better check of game engine instead of using a directory
+ sm_pause (ofir ily bby <3)
+ sm_resume
+ add natives/forwards for sm_pause/resume and polish code

~shavit-misc:
+ cvar "shavit_misc_godmode":
0 - nothing
1 - only world damage
2 - only player damage
3 - full godmode

+ 250 maxspeed for every pistol (requires DHooks)

~shavit-zones:
+ player slaying zone
+ cvar "shavit_zones_style"
0 - 3d (default)
1 - 2d
__________________
retired
shavit is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-17-2015 , 16:08   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.1b 29/June/2015)
Reply With Quote #45

Quote:
Originally Posted by live4net View Post
Yes, database is hosted on that same machine.
PM me your databases.cfg file or post it here with the password censored
__________________
retired
shavit is offline
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 07-18-2015 , 02:06   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.2b 17/July/2015)
Reply With Quote #46

"shavit"
{
"driver" "mysql"
"host" "localhost"
"database" "my_database"
"user" "root"
"pass" "............."
"timeout" "10"
"port" "3306"
}


//edit

Whe I reload plugins:

sm plugins reload shavit-zones
sm plugins reload shavit-wr

It works fine.

But is problematic to reloads plugins every time when server restart.


//edit2

How to use API? I want use function

forward void Shavit_OnFinish(int client, int style, float time, int jumps);
__________________


Last edited by live4net; 07-18-2015 at 05:05.
live4net is offline
ofir753
Senior Member
Join Date: Aug 2012
Old 07-18-2015 , 07:04   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.2b 17/July/2015)
Reply With Quote #47

Quote:
Originally Posted by live4net View Post
"shavit"
{
"driver" "mysql"
"host" "localhost"
"database" "my_database"
"user" "root"
"pass" "............."
"timeout" "10"
"port" "3306"
}


//edit

Whe I reload plugins:

sm plugins reload shavit-zones
sm plugins reload shavit-wr

It works fine.

But is problematic to reloads plugins every time when server restart.


//edit2

How to use API? I want use function

forward void Shavit_OnFinish(int client, int style, float time, int jumps);
The only problem i can think of its that you are restarting the mysql server everytime you are restarting the server then it cant reach the server

about edit2 you can check my plugin shavit-sounds i use there one of the natives
ofir753 is offline
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 07-18-2015 , 09:29   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.2b 17/July/2015)
Reply With Quote #48

I don't restart mysql database.

I think there are some errors in shavit.inv

When I add: include <shavit>

I got errors:

/dane/csgo-ds-fun/csgo/addons/sourcemod/scripting/include/shavit.inc(66) : error 147: new-style declarations are required
/dane/csgo-ds-fun/csgo/addons/sourcemod/scripting/include/shavit.inc(217) : error 001: expected token: "(", but found "-identifier-"
/dane/csgo-ds-fun/csgo/addons/sourcemod/scripting/include/shavit.inc(217) : error 010: invalid function or declaration
/dane/csgo-ds-fun/csgo/addons/sourcemod/scripting/include/shavit.inc(293) : error 147: new-style declarations are required

I try shavit.inc from first post and from Github.
__________________

live4net is offline
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 07-18-2015 , 10:43   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.2b 17/July/2015)
Reply With Quote #49

Could you add a way to set a prefix for the tables? The table "users" are too common and already used in my db. Many hosts (inc mine) does not allow their users to create multiple dbs as well. And since I can't seam to compile the .sp files I can not rename/add a table prefix myself.
Btw, the column "usertimes" does not seam to be created while using sqlite.
__________________
CAOSK-ESPORTS.COM

Last edited by Schpraaankiii; 07-18-2015 at 10:58.
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
ofir753
Senior Member
Join Date: Aug 2012
Old 07-18-2015 , 14:28   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.2b 17/July/2015)
Reply With Quote #50

Quote:
Originally Posted by live4net View Post
I don't restart mysql database.

I think there are some errors in shavit.inv

When I add: include <shavit>

I got errors:

/dane/csgo-ds-fun/csgo/addons/sourcemod/scripting/include/shavit.inc(66) : error 147: new-style declarations are required
/dane/csgo-ds-fun/csgo/addons/sourcemod/scripting/include/shavit.inc(217) : error 001: expected token: "(", but found "-identifier-"
/dane/csgo-ds-fun/csgo/addons/sourcemod/scripting/include/shavit.inc(217) : error 010: invalid function or declaration
/dane/csgo-ds-fun/csgo/addons/sourcemod/scripting/include/shavit.inc(293) : error 147: new-style declarations are required

I try shavit.inc from first post and from Github.
Wait from shavit to answer about the sql.
About the errors it seems you edited the include and i can't help you without see your include file
ofir753 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode