Initialization data exceeds declared size
Hello.
I'm getting this error "Initialization data exceeds declared size", and I can't figure out, what I am doing wrong. First I have this declared: Code:
new jobPoliceRank[7] = { "Officer", "Detective", "Sergeant", "Lieutenant", "Major", "Inspector", "Sheriff" };Code:
new rank[256]; |
Re: Initialization data exceeds declared size
- jobPoliceRank[7]-> jobPoliceRank[7][]
- Use copy() |
Re: Initialization data exceeds declared size
Now I get the error: "Must be assigned to an array" on the code:
Code:
rank[255] = jobPoliceRank[1]; |
Re: Initialization data exceeds declared size
Quote:
Quote:
PHP Code:
|
Re: Initialization data exceeds declared size
Oh like that :)
Anyways, I'm using the variable to either setting another variable, or using it in a format() Etc. Code:
playerJob[id] = rank; |
Re: Initialization data exceeds declared size
Quote:
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 18:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.