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

error 006: must be assigned to an array


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NooTy
Member
Join Date: Sep 2019
Old 09-07-2022 , 15:53   error 006: must be assigned to an array
Reply With Quote #1

Hello, What is the correct code to store text Data for ID (Player)

[Edited]: I receive this Error:
Code:
error 006: must be assigned to an array
Code:

PHP Code:
new Selected1[33
PHP Code:
                new ForYou[256];
                
formatex(Selected1sizeof(Selected1)-1"%s",g_itemname[gSelected[id]][item_id])  
                
Selected1[id] = ForYou 
i tryed this but same problem:
PHP Code:
                Selected1[id] = g_itemname[gSelected[id]][item_id

Last edited by NooTy; 09-07-2022 at 15:57.
NooTy is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 09-07-2022 , 22:25   Re: error 006: must be assigned to an array
Reply With Quote #2

better share all code, is missing some context in these lines.
__________________
Marttt is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-08-2022 , 07:08   Re: error 006: must be assigned to an array
Reply With Quote #3

...I guess, this is AMX plugin code
__________________
Do not Private Message @me
Bacardi is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 09-08-2022 , 11:19   Re: error 006: must be assigned to an array
Reply With Quote #4

variable Selected1 is String, but variable ForYou is number array.
How do you create a variable Selected1?
__________________
Grey83 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:58.


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