Raised This Month: $ Target: $400
 0% 

Array sizes do not match.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 01-16-2007 , 11:18   Re: Array sizes do not match.
Reply With Quote #1

Black Rose, here is fixed version of your code:
Code:
#include <amxmodx> enum info {     Float:vecOrigin[3],     str[10] } new array[1][info] public plugin_init() {     func(array[0][str], array[0][vecOrigin]) } stock func(str[], Float:origin[3]) {     }

Remember, that enumeration items are visible in global scope.

I suggest to name items with struc name prefix, i.e. "info" in your case, like this:
Code:
enum info {     Float:info_vecOrigin[3],     info_str[10] }
Simon Logic is offline
Send a message via Skype™ to Simon Logic
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-16-2007 , 16:07   Re: Array sizes do not match.
Reply With Quote #2

probably NO ONE of you did understand my post.
I dont want to get no fucking origin of someone, I wanna know why it doesn't work.
As I said, it's not important to fix it, I don't use it anymore and the plugin is almost done allready.

And the "fixed" version is not even close being fixed, you've just changed the name of the origin part.
[ --<-@ ] Black Rose 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 22:22.


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