Search found 11 matches

by juKay
Sat Aug 13, 2005 2:35 am
Forum: WC3XP - Bug Feedback
Topic: Might be a problem in wc3_givexp
Replies: 6
Views: 19039

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[i...
by juKay
Fri Aug 12, 2005 4:05 pm
Forum: WC3XP - Suggestions / Ideas
Topic: get_xp_from_file()
Replies: 1
Views: 12903

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,playern...
by juKay
Fri Aug 12, 2005 3:41 pm
Forum: WC3XP - Bug Feedback
Topic: Might be a problem in wc3_givexp
Replies: 6
Views: 19039

Are you talking about ROUNDEND_SAVEALL or did I miss something? I've left that to the default and if I'm correct the default is enabled. Looked at the code now and you are correct, it's a SQL statement error. In write_xp_to_file() you have this. So if the players XP is lower than before it won't get...
by juKay
Thu Aug 11, 2005 12:06 pm
Forum: WC3XP - Bug Feedback
Topic: Might be a problem in wc3_givexp
Replies: 6
Views: 19039

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 ...
by juKay
Thu Aug 11, 2005 11:44 am
Forum: WC3XP - Suggestions / Ideas
Topic: Money for XP system
Replies: 2
Views: 14603

Money for XP system

What about getting money for XP? Like if you give away 2000xp you would gain 2000 in money?
by juKay
Thu Aug 11, 2005 11:39 am
Forum: WC3XP - Suggestions / Ideas
Topic: What about dictionary support in AMXX?
Replies: 4
Views: 16537

I could do it if you want. As you say it's not all that fun. But it's quite simple since it's just a question of copy and pasting.
by juKay
Thu Aug 11, 2005 11:36 am
Forum: WC3XP - Suggestions / Ideas
Topic: Speed up code (check_say)
Replies: 5
Views: 18496

12 if statements is not a lot of CPU cycles.... Checked a log and it had 159 say/team_say in it for a 20 minutes time span. That make a totalt of 1908 checks that is not needed. Even if they would be needed they could be executed at a lower level than checking them in a plugin. Or am I wrong when I...
by juKay
Thu Aug 11, 2005 8:14 am
Forum: WC3XP - Suggestions / Ideas
Topic: Speed up code (check_say)
Replies: 5
Views: 18496

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 m...
by juKay
Thu Aug 11, 2005 3:05 am
Forum: WC3XP - Suggestions / Ideas
Topic: What about dictionary support in AMXX?
Replies: 4
Views: 16537

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.
by juKay
Thu Aug 11, 2005 2:56 am
Forum: WC3XP - Suggestions / Ideas
Topic: Speed up code (check_say)
Replies: 5
Views: 18496

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_race_...
by juKay
Thu Aug 11, 2005 2:41 am
Forum: WC3XP - Bug Feedback
Topic: Problem in stock logKill(...)
Replies: 2
Views: 13319

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 function...