Raised This Month: $32 Target: $400
 8% 

Achievements


Post New Thread Reply   
 
Thread Tools Display Modes
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 02-05-2011 , 18:13   Re: Achievements
Reply With Quote #11

Quote:
Originally Posted by .MMYTH. View Post
for optimize
PHP Code:
#if defined USING_SQL
g_sql_tuple SQL_MakeStdTuple()
SQL_ThreadQuery(g_sql_tuple"QueryCreateTable""CREATE TABLE IF NOT EXISTS ^"Achievement^" ( ^"name^" VARCHAR(32) NOT NULL, ^"authid^" VARCHAR(35) NOT NULL, ^"data^" VARCHAR(256) NOT NULL );" )
#else
g_iVault nvault_open("Achievements")
if(
g_iVault == INVALID_HANDLE)
    
set_fail_state"Error opening nVault" )
#endif 
And I think then don't save 'player' achievements.
Yes, No for the optimizing all you did was move it to plugin_init it still gets called in either way so doesnt matter
Pastout is offline
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 02-05-2011 , 18:14   Re: Achievements
Reply With Quote #12

PHP Code:
SQL_MakeStdTuple() 
This doesn't matter.
.MMYTH. is offline
Send a message via MSN to .MMYTH.
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 02-05-2011 , 18:17   Re: Achievements
Reply With Quote #13

Quote:
Originally Posted by .MMYTH. View Post
PHP Code:
SQL_MakeStdTuple() 
This doesn't matter.
And why do you say that...
Pastout is offline
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 02-05-2011 , 18:19   Re: Achievements
Reply With Quote #14

How a simple person that don't know sqlx include, will create a external mysql conection ?
.MMYTH. is offline
Send a message via MSN to .MMYTH.
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 02-05-2011 , 18:54   Re: Achievements
Reply With Quote #15

Quote:
Originally Posted by .MMYTH. View Post
How a simple person that don't know sqlx include, will create a external mysql conection ?
What are you saying Really?

Last edited by Pastout; 02-05-2011 at 22:31.
Pastout is offline
mattisbogus
Senior Member
Join Date: Jun 2009
Location: North Carolina, USA
Old 02-06-2011 , 01:29   Re: Achievements
Reply With Quote #16

Dr. Pastout this is fucking amazing man, incredible work. I look forward to using this and I hope it continues to grow.
mattisbogus is offline
juan2394
Member
Join Date: Sep 2010
Old 02-06-2011 , 01:44   Re: Achievements
Reply With Quote #17

WOW good job! this its just excelent.
juan2394 is offline
mattisbogus
Senior Member
Join Date: Jun 2009
Location: North Carolina, USA
Old 02-06-2011 , 02:20   Re: Achievements
Reply With Quote #18

I'm wondering if you could please enable support for bots with this? I say this because the server will crash when going to load data from bots, assuming because it doesn't save data for bots, but still creates an entry in nvault causing the server to crash on map change/server startup
mattisbogus is offline
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 02-06-2011 , 06:22   Re: Achievements
Reply With Quote #19

This plugin isn't amazing, have many erros and don't save achievements.
.MMYTH. is offline
Send a message via MSN to .MMYTH.
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 02-06-2011 , 08:52   Re: Achievements
Reply With Quote #20

Quote:
Originally Posted by .MMYTH. View Post
This plugin isn't amazing, have many erros and don't save achievements.
Stop Mmyth, if you says it not working or have errors please post them here.
As for the bots edit this line

if( !is_user_bot( id ) && !is_user_hltv( id ) )

to

if( !is_user_hltv( id ) )

and your good to go
Pastout 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 19:47.


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