The problem is here:
format(mquery, 1023, "UPDATE `%s` SET playername='%s',xp=%d,skill1=%d,skill2=%d,skill3=%d,skill4=%d WHERE \
playerid='%s' AND race=%d AND xp<%d ", mysqltablename, playername, playerxp[id], p_skills[id][1], \
p_skills[id][2], p_skills[id][3], p_skills[id][4], playerid, p_skills ...
Search found 11 matches
- Sat Aug 13, 2005 2:35 am
- Forum: WC3XP - Bug Feedback
- Topic: Might be a problem in wc3_givexp
- Replies: 6
- Views: 37752
- Fri Aug 12, 2005 4:05 pm
- Forum: WC3XP - Suggestions / Ideas
- Topic: get_xp_from_file()
- Replies: 1
- Views: 23037
get_xp_from_file()
You should change the SELECT * FROM table, into actually telling what fields you want. It will lift a bit of load of the SQL-server.
#if MYSQL_ENABLED
if (returnrace)
{
if (get_cvar_num("mp_savebyname")==1)
format(mquery, 1023, "SELECT xp, race FROM `%s` WHERE playername='%s'",mysqltablename ...
#if MYSQL_ENABLED
if (returnrace)
{
if (get_cvar_num("mp_savebyname")==1)
format(mquery, 1023, "SELECT xp, race FROM `%s` WHERE playername='%s'",mysqltablename ...
- Fri Aug 12, 2005 3:41 pm
- Forum: WC3XP - Bug Feedback
- Topic: Might be a problem in wc3_givexp
- Replies: 6
- Views: 37752
- Thu Aug 11, 2005 12:06 pm
- Forum: WC3XP - Bug Feedback
- Topic: Might be a problem in wc3_givexp
- Replies: 6
- Views: 37752
Might be a problem in wc3_givexp
I know it's a give XP command but I tried to remove XP from a user and it worked. However it never got save to the database, mysql, so when he rejoined he had all the original XP. We tried this three times without success. However if I gave him more XP it got saved without any problem.
Maybe adding ...
Maybe adding ...
- Thu Aug 11, 2005 11:44 am
- Forum: WC3XP - Suggestions / Ideas
- Topic: Money for XP system
- Replies: 2
- Views: 27359
Money for XP system
What about getting money for XP? Like if you give away 2000xp you would gain 2000 in money?
- Thu Aug 11, 2005 11:39 am
- Forum: WC3XP - Suggestions / Ideas
- Topic: What about dictionary support in AMXX?
- Replies: 4
- Views: 32858
- Thu Aug 11, 2005 11:36 am
- Forum: WC3XP - Suggestions / Ideas
- Topic: Speed up code (check_say)
- Replies: 5
- Views: 36183
- Thu Aug 11, 2005 8:14 am
- Forum: WC3XP - Suggestions / Ideas
- Topic: Speed up code (check_say)
- Replies: 5
- Views: 36183
Oh, I know how to do it. It simply hasn't been at the top of my priority list. This bit of code is some of the oldest in the plugin.
On the same note though, you won't truly save MUCH performance by splitting it up. AMXX will just register x more commands which all have to be checked against as a ...
On the same note though, you won't truly save MUCH performance by splitting it up. AMXX will just register x more commands which all have to be checked against as a ...
- Thu Aug 11, 2005 3:05 am
- Forum: WC3XP - Suggestions / Ideas
- Topic: What about dictionary support in AMXX?
- Replies: 4
- Views: 32858
What about dictionary support in AMXX?
Guess you already thought of it and my guess is that you are a busy man. Here goes anyway =)
Moving all the #if LANG_XXX out of the code would make the codebase smaller and more easy to maintain and also it would be easy to add more languages.
Moving all the #if LANG_XXX out of the code would make the codebase smaller and more easy to maintain and also it would be easy to add more languages.
- Thu Aug 11, 2005 2:56 am
- Forum: WC3XP - Suggestions / Ideas
- Topic: Speed up code (check_say)
- Replies: 5
- Views: 36183
Speed up code (check_say)
I think you could save alot of CPU cycles if the function check_say were splitted into one function for each thing. Right now you have 12 if that it goes thru ever time someone says something and that is bad in my opinion.
example
public plugin_init() {
register_clcmd("say /changerace","change ...
example
public plugin_init() {
register_clcmd("say /changerace","change ...
- Thu Aug 11, 2005 2:41 am
- Forum: WC3XP - Bug Feedback
- Topic: Problem in stock logKill(...)
- Replies: 2
- Views: 25290
Problem in stock logKill(...)
The variables for the team name is to short, teama[8],teamv[8].
L 08/11/2005 - 10:35:18: "CU|Anzero<5222><STEAM_0:1:7301782><CT>" killed "wizRd<5249><STEAM_0:1:1444758>< TERRORI >" with "Shadowstrike"
You should redefine them as teama[10], teamv[10] and also change the get_user_team in that ...
L 08/11/2005 - 10:35:18: "CU|Anzero<5222><STEAM_0:1:7301782><CT>" killed "wizRd<5249><STEAM_0:1:1444758>< TERRORI >" with "Shadowstrike"
You should redefine them as teama[10], teamv[10] and also change the get_user_team in that ...