Raised This Month: $ Target: $400
 0% 

Achievements


Post New Thread Reply   
 
Thread Tools Display Modes
Ashcan
Senior Member
Join Date: May 2008
Old 07-10-2011 , 11:11   Re: Achievements
Reply With Quote #111

Hello
1st had problem with connection to my localhost sql base but i just created random user with no password and now it works...
But not fully ;]

Now i got error:
Code:
( 31) Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"Achievement" ( "name" VARCHAR(32) NOT NULL, "authid" VARCHAR(35) NOT NULL, "dat' at line 1
Ashcan is offline
GANGSTA_
Senior Member
Join Date: Nov 2010
Location: IR/ Romania
Old 07-12-2011 , 08:22   Re: Achievements
Reply With Quote #112

Can u made achivements for hidenseek?
__________________
Quitted! Cya xD
GANGSTA_ is offline
Send a message via Yahoo to GANGSTA_
Ashcan
Senior Member
Join Date: May 2008
Old 07-15-2011 , 07:10   Re: Achievements
Reply With Quote #113

Quote:
Originally Posted by Ashcan View Post
Hello
1st had problem with connection to my localhost sql base but i just created random user with no password and now it works...
But not fully ;]

Now i got error:
Code:
( 31) Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"Achievement" ( "name" VARCHAR(32) NOT NULL, "authid" VARCHAR(35) NOT NULL, "dat' at line 1

F5
Ashcan is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 07-15-2011 , 08:48   Re: Achievements
Reply With Quote #114

Ashcan ~ Can you go to your sql.cfg file located in your configs folder. Then open it and make sure your information is 100% correct and your data base is working.

Inside the file you should see something like this make sure it has ALL the right information.

amx_sql_host "127.0.0.1"
amx_sql_user "root"
amx_sql_pass ""
amx_sql_db "amx"
amx_sql_table "admins"
amx_sql_type "mysql"

Let me know how this goes and thanks for posting.
Pastout is offline
vaan123
Veteran Member
Join Date: Sep 2009
Location: Kuwait
Old 07-15-2011 , 13:28   Re: Achievements
Reply With Quote #115

first of all, thank you for your hard work.

second,

is there a way i can add rewards other than CS default weapons, like bazooka for example? or Cross-Bow.
__________________

vaan123 is offline
Send a message via MSN to vaan123 Send a message via Yahoo to vaan123 Send a message via Skype™ to vaan123
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-15-2011 , 13:31   Re: Achievements
Reply With Quote #116

Quote:
Originally Posted by Pastout View Post
Ashcan ~ Can you go to your sql.cfg file located in your configs folder. Then open it and make sure your information is 100% correct and your data base is working.
Syntax error is a problem with your query formatting.
You would get a connection error if it could not connect.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
asdfdsdf
AlliedModders Donor
Join Date: Aug 2010
Location: Belgium
Old 07-15-2011 , 14:35   Re: Achievements
Reply With Quote #117

can you make achievements for zombie plague 4.3 would be very nice
asdfdsdf is offline
YakumoHiratsuhi
Veteran Member
Join Date: Dec 2010
Location: Dreαmlαnd.
Old 07-15-2011 , 22:17   Re: Achievements
Reply With Quote #118

gotta keep this code on my vault
awesome job
__________________
"Podra parecer ridiculo o imposible, pero este es el camino que seguimos los verdaderos hombres, si hay un muro en el camino, lo derribamos, si no hay camino, haremos uno, con nuestras propias manos, porque el magma de nuestro corazón arde en llamas."
YakumoHiratsuhi is offline
Send a message via MSN to YakumoHiratsuhi
Ashcan
Senior Member
Join Date: May 2008
Old 07-16-2011 , 05:55   Re: Achievements
Reply With Quote #119

Quote:
Originally Posted by Pastout View Post
Ashcan ~ Can you go to your sql.cfg file located in your configs folder. Then open it and make sure your information is 100% correct and your data base is working.

Inside the file you should see something like this make sure it has ALL the right information.

amx_sql_host "127.0.0.1"
amx_sql_user "root"
amx_sql_pass ""
amx_sql_db "amx"
amx_sql_table "admins"
amx_sql_type "mysql"

Let me know how this goes and thanks for posting.
Im pretty sure because i got amxbans on same database and its working...

Quote:
Originally Posted by Exolent[jNr] View Post
Syntax error is a problem with your query formatting.
You would get a connection error if it could not connect.
True, but any solution?


Whenever ever i connect to base (even without using password), i get a new error about my syntax ;/

And some new things, when using nvault, achievements plugin is running but its not adding nothing when i plant bomb or whatever ;/
Ashcan is offline
marcioandre
SourceMod Donor
Join Date: Jul 2006
Old 07-19-2011 , 00:24   Re: Achievements
Reply With Quote #120

FIX Line:675

Code:
	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 );")
fix line : 2638

Code:
	formatex(query, sizeof(query) - 1, "SELECT data FROM Achievement WHERE authid = ^"%s^";", g_iAuthID[ id ] )
fix line :2742
Code:
static query[ 256 ]
	if( g_loaded_data[ id ] )
	{
		formatex( query, sizeof( query ) - 1, "UPDATE Achievement SET name = ^"%s^", data = ^"%s^" WHERE authid = ^"%s^";", name, data, g_iAuthID[ id ] )
	}
	else
	{
		formatex( query, sizeof( query ) - 1, "INSERT INTO Achievement ( name, authid, data ) VALUES ( ^"%s^", ^"%s^", ^"%s^" );", name, g_iAuthID[ id ], data )
	}
Quote:
Originally Posted by Ashcan View Post
Im pretty sure because i got amxbans on same database and its working...



True, but any solution?


Whenever ever i connect to base (even without using password), i get a new error about my syntax ;/

And some new things, when using nvault, achievements plugin is running but its not adding nothing when i plant bomb or whatever ;/

Last edited by marcioandre; 07-19-2011 at 00:39.
marcioandre 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 17:34.


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