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

Problem with set models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
San1xon
Junior Member
Join Date: Jul 2017
Location: Russia, Moscow
Old 07-03-2017 , 12:44   Problem with set models
Reply With Quote #1

Problem solved.

Please help! I have 2 errors at compilation:
Code:
1) error 017: undefined symbol "SetViewModel"
2) error 017: undefined symbol "SetWorldModel"
in rows:
Code:
1) SetViewModel(weaponIndex, ZP_GetClientViewModel(clientIndex), iViewModel);
2) SetWorldModel(weaponIndex, iWorldModel);

Last edited by San1xon; 07-03-2017 at 18:38. Reason: Problem solved
San1xon is offline
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 07-03-2017 , 17:06   Re: Problem with set models
Reply With Quote #2

Hi

Because you didn't put this functions in plugin to call them.


I think this thread is very helpful for your problem:

https://forums.alliedmods.net/showthread.php?t=134571

Last edited by WatchDogs; 07-03-2017 at 17:06.
WatchDogs is offline
San1xon
Junior Member
Join Date: Jul 2017
Location: Russia, Moscow
Old 07-03-2017 , 17:31   Re: Problem with set models
Reply With Quote #3

Quote:
Originally Posted by WatchDogs View Post
Hi

Because you didn't put this functions in plugin to call them.


I think this thread is very helpful for your problem:

https://forums.alliedmods.net/showthread.php?t=134571
Thanks for answer! It`s ain`t my plugin. I changed defines and ways to files. Plugin with this code works correctly. Can you watch source?
Attached Files
File Type: sp Get Plugin or Get Source (zbm3_extraitem_ak117.sp - 20 views - 13.8 KB)
San1xon is offline
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 07-03-2017 , 18:26   Re: Problem with set models
Reply With Quote #4

Good but I saw in somewhere that SetEntityModel(weaponIndex, MODEL_WORLD) doesn't works for weapons.


Also you can use this
WatchDogs is offline
San1xon
Junior Member
Join Date: Jul 2017
Location: Russia, Moscow
Old 07-03-2017 , 18:37   Re: Problem with set models
Reply With Quote #5

Quote:
Originally Posted by WatchDogs View Post
Good but I saw in somewhere that SetEntityModel(weaponIndex, MODEL_WORLD) doesn't works for weapons.


Also you can use this
Thank you! I try to use that natives. And i`m wait answers on other forums.
San1xon is offline
San1xon
Junior Member
Join Date: Jul 2017
Location: Russia, Moscow
Old 07-04-2017 , 06:52   Re: Problem with set models
Reply With Quote #6

And solve for my specifically problem finded. That plugin compiled in SourceMod 1.7.2, i tried to compile on that version. Profit. If you have problem like my, try to compile plugin on version where it maked.

Last edited by San1xon; 07-04-2017 at 06:56.
San1xon 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 05:00.


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