[PROBLEM] Array sizes do not match
Hello, can anyone help me to find what am I doing wrong?
My plugin doesnt compile for some weird reason I can't understand. PHP Code:
I can't understand why I am getting this error. I was not getting this error with zombie classes. It was compiling alright. I got this error when I added survivor classes. If I remove that line, plugin compiles. But I need to return Survivor names as string. And I dont think checking model is a good idea because I have joined server where survivors were using witch and tank models. Any idea what's is wrong with my array? |
Re: [PROBLEM] Array sizes do not match
I think Sourcemod is crazy (bugged).
If I do this: PHP Code:
EDIT: Online compiler failed too |
Re: [PROBLEM] Array sizes do not match
Code:
char L4D1_S_CLASSES[4][8] = {"Bill", "Zoey", "Francis", "Louis"}; Change the L4D1_S_CLASSES inner length to 9 and everything will be fine. |
Re: [PROBLEM] Array sizes do not match
Quote:
I've seen it before in Motorola's 68000 assembly language, but I think I forgot it. |
Re: [PROBLEM] Array sizes do not match
Solved by Asherkin:
PHP Code:
|
All times are GMT -4. The time now is 14:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.