Raised This Month: $ Target: $400
 0% 

Problem with a code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2017 , 07:12   Re: Problem with a code
Reply With Quote #1

edon1337, it's okay to help if you know something, but please avoid to answer randomly.

If you look at 'bMoreThanOne', you see it's a boolean. What you're doing doesn't make sense at all.

Issue is more because compiler is dumb. You must provide both either indexed or not indexed, i.e either "condition ? array1 : array2" or "condition ? array1[index1] : array2[index2].

It might work if you use "szValue[0]".
__________________
Arkshine is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-19-2017 , 07:30   Re: Problem with a code
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
edon1337, it's okay to help if you know something, but please avoid to answer randomly.
I'm sorry, I just thought that would be the solution because it worked for me in some situations
__________________
edon1337 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-19-2017 , 13:22   Re: Problem with a code
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
edon1337, it's okay to help if you know something, but please avoid to answer randomly.

If you look at 'bMoreThanOne', you see it's a boolean. What you're doing doesn't make sense at all.

Issue is more because compiler is dumb. You must provide both either indexed or not indexed, i.e either "condition ? array1 : array2" or "condition ? array1[index1] : array2[index2].

It might work if you use "szValue[0]".
I noticed it when I created new aaa[4] and changed to bMoreThanOne ? szValue : aaa and it worked then what you said should work. I got it, thx
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-19-2017 at 13:22.
EFFx 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 17:56.


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