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

Level rank plugin Help


Post New Thread Reply   
 
Thread Tools Display Modes
Jackol1234
Senior Member
Join Date: Apr 2015
Old 05-30-2016 , 22:14   Re: Level rank plugin Help
Reply With Quote #11

Guessing it's because you didn't change "SQL_TConnect(SQLCallback_Connect, "ckSurf");" to connect toy our database?

Edit: You also have a few more errors. Here is how it should look:

Spoiler


Make sure to change the ckSurf to whatever you have in your database.cfg.
__________________
Accepting PM's for private requests!

Last edited by Jackol1234; 05-30-2016 at 22:17.
Jackol1234 is offline
cristianronaldo
Member
Join Date: Sep 2015
Old 05-30-2016 , 22:37   Re: Level rank plugin Help
Reply With Quote #12

Quote:
Originally Posted by Jackol1234 View Post
Guessing it's because you didn't change "SQL_TConnect(SQLCallback_Connect, "ckSurf");" to connect toy our database?

Edit: You also have a few more errors. Here is how it should look:

Spoiler


Make sure to change the ckSurf to whatever you have in your database.cfg.
friend, the database is set up, including the console does not give me any error.you could tell me what form this query is selecting player_id from the database? I mean, in my database, the player_id is saved only with numbers, that is, has 3 columns the ranking table with the columns: score, nick and player_id, the player id is saved only with numbers, for example 765611234567, that is player_id of one of my users.The error could come from there?

Last edited by cristianronaldo; 05-30-2016 at 22:48.
cristianronaldo is offline
Jackol1234
Senior Member
Join Date: Apr 2015
Old 05-31-2016 , 02:00   Re: Level rank plugin Help
Reply With Quote #13

Quote:
Originally Posted by cristianronaldo View Post
friend, the database is set up, including the console does not give me any error.you could tell me what form this query is selecting player_id from the database? I mean, in my database, the player_id is saved only with numbers, that is, has 3 columns the ranking table with the columns: score, nick and player_id, the player id is saved only with numbers, for example 765611234567, that is player_id of one of my users.The error could come from there?
Send a picture of your database if it doesn't have any sensitive information in it so I can help you further.
__________________
Accepting PM's for private requests!
Jackol1234 is offline
cristianronaldo
Member
Join Date: Sep 2015
Old 05-31-2016 , 07:31   Re: Level rank plugin Help
Reply With Quote #14

Quote:
Originally Posted by Jackol1234 View Post
Send a picture of your database if it doesn't have any sensitive information in it so I can help you further.
This is the structure of my Database.
Attached Thumbnails
Click image for larger version

Name:	DB.png
Views:	97
Size:	28.6 KB
ID:	155126  
cristianronaldo is offline
cristianronaldo
Member
Join Date: Sep 2015
Old 05-31-2016 , 09:43   Re: Level rank plugin Help
Reply With Quote #15

Quote:
Originally Posted by Jackol1234 View Post
Send a picture of your database if it doesn't have any sensitive information in it so I can help you further.
I need something like this MMR_rgx_id = CompileRegex("\[[A-Z]:\d\d*?)\]", 1, MMR_errors, 256, 0);


that is, at the time of take de steam, just take me the numbers.
cristianronaldo is offline
Jackol1234
Senior Member
Join Date: Apr 2015
Old 05-31-2016 , 11:21   Re: Level rank plugin Help
Reply With Quote #16

How exactly are you getting the "id_player" numbers?
__________________
Accepting PM's for private requests!
Jackol1234 is offline
cristianronaldo
Member
Join Date: Sep 2015
Old 05-31-2016 , 11:26   Re: Level rank plugin Help
Reply With Quote #17

Quote:
Originally Posted by Jackol1234 View Post
How exactly are you getting the "id_player" numbers?
With a .log parser in C# and many regex.you could integrate in the plugin,a regex to choose the STEAM_ID only with the numbers?Thanks
cristianronaldo is offline
Jackol1234
Senior Member
Join Date: Apr 2015
Old 05-31-2016 , 11:53   Re: Level rank plugin Help
Reply With Quote #18

Why go through all that? Why not just store a normal SteamID value? I don't know enough to be able to do all that, at least right now. Sorry.
__________________
Accepting PM's for private requests!
Jackol1234 is offline
cristianronaldo
Member
Join Date: Sep 2015
Old 06-01-2016 , 11:07   Re: Level rank plugin Help
Reply With Quote #19

Quote:
Originally Posted by Jackol1234 View Post
Why go through all that? Why not just store a normal SteamID value? I don't know enough to be able to do all that, at least right now. Sorry.
friend, I did it the right way and it is working!!!!!.now,i need a last help.in my server I have 4 ports, and I need a different minimum of points to enter each theirs.you can add to the plugin some form of for example, on port 111 the minimum points is 1000, in the port 222 is 1500 and so with the other ports?.thanks
cristianronaldo is offline
Jackol1234
Senior Member
Join Date: Apr 2015
Old 06-01-2016 , 12:55   Re: Level rank plugin Help
Reply With Quote #20

I don't know if it's possible to grab the port. The one thing I found using google was:

PHP Code:
int iPort GetConVarInt(FindConVar("hostport")); 
but this requires you to use hostport in the command-line while starting up your server. To test this out and see if it works for you, change your OnPluginStart code to this:

PHP Code:
public void OnPluginStart()
{
    
SQL_TConnect(SQLCallback_Connect"ckSurf");

    
int iPort GetConVarInt(FindConVar("hostport"));
    
LogMessage("This servers port is %i"iPort);

Then look in your console or your log files and see what it says. If it shows "This servers port is " then it will not work, otherwise I'll code something up for you.
__________________
Accepting PM's for private requests!

Last edited by Jackol1234; 06-01-2016 at 12:56.
Jackol1234 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:54.


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