Getting data from from MySQL row
I know how to read from csstats, but how do you write to them.
what I'm looking to do is make a "purchase kills" feature, but I do not want the kills purchased shown on the scoreboard. Instead I want the kills to be applied to the users stats already within the csstats.dat. Does anyone know how to do that? |
Re: Writing to csstats (CS 1.6)
ok so maybe writing to csstats.dat isn't the best to go about it.
What about reading directly from the MySQL database that is already storing the info? this is what I have so far and it isn't working at all. Please forgive any obvious mistakes, I was trying anything. Code:
public read_user_stats(id){ |
Re: Getting data from from MySQL row
Ok I got the function to read the rows. However there was a problem. Here's the code, but it displays everyones stats within the database rather then just the person making the query.
Code:
public read_user_stats(id){Code:
ublic read_user_stats(id){any ideas? |
Re: Getting data from from MySQL row
Got it..
Code:
public read_user_stats(id){ |
| All times are GMT -4. The time now is 22:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.