Raised This Month: $ Target: $400
 0% 

War3ft Mod new version error.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-01-2022 , 14:36   Re: War3ft Mod new version error.
Reply With Quote #1

Row 574 has tons of functions, it's not just cs_get_user_team() and like I said, this is caused by a variable, not a function.

Code:
// Row 574: if( cs_get_user_team(id) != cs_get_user_team(iPlayer) && is_user_alive( iPlayer ) && get_user_health(iPlayer) <= p_cyclone[iSkillLevel-1] && is_user_connected(id) && is_user_connected(iPlayer) )

Show the definition of "p_cyclone". It's not in the main .sma file.

Also, checking if the user is connected after using cs_get_user_team() is wrong and will output an error (different from this one) if he isn't. Always check if he's connected before using other functions on him.

You don't need to check if "id" is connected. client_PostThink() cannot be called on a disconnected player, plus you are already checking if he's alive, which also check if he's connected.
__________________

Last edited by OciXCrom; 02-01-2022 at 14:37.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Zore93
New Member
Join Date: Feb 2022
Old 02-01-2022 , 15:18   Re: War3ft Mod new version error.
Reply With Quote #2

Yea, I didn't get to work unfortunately....

For ones who want to do more on this mod here is all the files: https://easyupload.io/v6j1gt

@OciXCrom Thank you for your support.
Zore93 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 11:31.


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