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

[CS GO] error 006: must be assigned to an array


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mozzie4k
Junior Member
Join Date: Sep 2020
Old 05-14-2021 , 09:37   [CS GO] error 006: must be assigned to an array
Reply With Quote #1

I am trying to modify a plugin by adding a code (i don't know much about coding i just googled everything) right now i am stuck and can't understand what i am doing wrong. If anybody could help i'd appreciate it.[LIST=1]
PHP Code:
int iDefIndex hParams.GetObjectVar(120ObjectValueType_Int);
        {
          if(
iDefIndex == 4698)
                 {
            
iDefIndex "Broken Fang ";
             }
                 else
             { 
             
iDefIndex "New Case or Rare Case"
             
}
        } 
error i get
PHP Code:
 (142) : error 006must be assigned to an array
 (
147) : error 006must be assigned to an array 
Mozzie4k is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-14-2021 , 10:39   Re: [CS GO] error 006: must be assigned to an array
Reply With Quote #2

You are assigning strings to a variable that only accepts integers. You must create a char array variable to store strings.
PHP Code:
char sBuffer[32];
...
FormatEx(sBuffersizeof(sBuffer), "Broken Fang");
...
FormatEx(sBuffersizeof(sBuffer), "New Case or Rare Case"); 
__________________
Psyk0tik is offline
Mozzie4k
Junior Member
Join Date: Sep 2020
Old 05-14-2021 , 12:49   Re: [CS GO] error 006: must be assigned to an array
Reply With Quote #3

Close

Last edited by Mozzie4k; 05-15-2021 at 18:29.
Mozzie4k 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 20:50.


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