Raised This Month: $51 Target: $400
 12% 

cs_get_user_team not working.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
luxor
Member
Join Date: Jan 2014
Old 10-17-2015 , 11:02   cs_get_user_team not working.
Reply With Quote #1

Hello, I'm using AMXX 1.8.3-dev-git3917 and i recive this error :

L 10/17/2015 - 17:56:10: [CSTRIKE] Invalid m_iModelName offset. Native cs_get_user_team is disabled
L 10/17/2015 - 17:56:10: [AMXX] Displaying debug trace (plugin "allchat2.amxx", version "2.1")
L 10/17/2015 - 17:56:10: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 10/17/2015 - 17:56:10: [AMXX] [0] allchat2.sma::cmdSay (line 143)

For each plugin which is using this native... if I use cstrike module from git-4585 all things are alright..


so how I can solve this problem ?
luxor is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2015 , 11:40   Re: cs_get_user_team not working.
Reply With Quote #2

You have likely gamedata missing.

You have to upload the whole data/gamedata/ directory on your server (you will need to stop/start the server, since such files are read at server start). Such files are mandatory.
__________________

Last edited by Arkshine; 10-17-2015 at 11:47.
Arkshine is offline
luxor
Member
Join Date: Jan 2014
Old 10-17-2015 , 12:43   Re: cs_get_user_team not working.
Reply With Quote #3

i did that

now i re-did the operation.... and it works... sorry for that topic, solved.

Last edited by luxor; 10-17-2015 at 13:05. Reason: solved.
luxor is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2015 , 13:06   Re: cs_get_user_team not working.
Reply With Quote #4

It looks like not. Check again. Make sure you have all files in amxmodx/data/gamedata/. Also, check your AMXX logs, you will get a warning message at server start if gamedata is missing (like "Could not read module.games gamedata");.
__________________

Last edited by Arkshine; 10-17-2015 at 13:07.
Arkshine is offline
luxor
Member
Join Date: Jan 2014
Old 10-17-2015 , 13:31   Re: cs_get_user_team not working.
Reply With Quote #5

i solved, thanks.

Last edited by luxor; 10-17-2015 at 13:39.
luxor is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2015 , 13:35   Re: cs_get_user_team not working.
Reply With Quote #6

Sorry, I'm not quite sure to understand what is your issue?
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-18-2015 , 12:05   Re: cs_get_user_team not working.
Reply With Quote #7

Just asking why are you using MSG_ALL in cs_set_user_team?

Code:
    if (sendTeamInfo)                                    {                                        MESSAGE_BEGIN(MSG_ALL, MessageIdTeamInfo);                                            WRITE_BYTE(index);                                            WRITE_STRING(teaminfo);                                        MESSAGE_END();                                    }
Code:
#define MSG_BROADCAST               0        // Unreliable to all #define MSG_ALL                     2        // Reliable to all
Why don't we use MSG_BROADCAST, i have an issue if using MSG_ALL.
For example:
1. I'm in TR team.
2. I hit CT player (victim) and make a custom death message.
3. I transfer victim to TR. death message show TR kill TR.

If i send TeamInfo message using MSG_BROADCAST it will show TR kill CT.

This is CS team changer module by claudiu @ hattrick http://pastebin.com/2nJB3n6r. As you can see he send TeamInfo message using MSG_BROADCAST too.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 10-18-2015 at 12:10.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2015 , 17:23   Re: cs_get_user_team not working.
Reply With Quote #8

Don't understand your issue. If you set team before death message appears, it makes sense to have TR kills TR, no?
__________________

Last edited by Arkshine; 10-19-2015 at 04:05.
Arkshine 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 14:24.


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