Error: Must be assigned to an array?
Why doesn't this code work?
Code:
new data[11];Code:
new CsTeams:team = cs_get_user_team(id); |
Re: Error: Must be assigned to an array?
Quote:
You can't put 31 chars long name to one. There's some examples: new int = 11; new int[1]; int[0] = 11; new name[32]; name[0] = "N"; get_user_name(index, name, 31); Just watch that the arrays' chars fit. |
Re: Error: Must be assigned to an array?
PHP Code:
|
Re: Error: Must be assigned to an array?
Quote:
|
Re: Error: Must be assigned to an array?
I'm trying to make a array with data.
But however I try, it does not work. |
Re: Error: Must be assigned to an array?
Quote:
|
Re: Error: Must be assigned to an array?
Quote:
He told me that you have to use EngFunc_AllocString when setting it, then use glb_EncodeText (or whatever it is) after you retrieve it to get it to a string. |
Re: Error: Must be assigned to an array?
I never said that. oO
I have several plugins where I'm using array in enum, you know. I don't see why I would say something like. And if you search in scripting section you will find old posts where I give such example. You confuse with something else. |
| All times are GMT -4. The time now is 01:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.