Raised This Month: $ Target: $400
 0% 

Array sizes do not match.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ --<-@ ] 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 #1

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
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-16-2007 , 16:31   Re: Array sizes do not match.
Reply With Quote #2

Weren't you asking why you were getting errors compiling with size 1 arrays? I gave a pretty good response on why I thought it might not compile that, not how to fix it.
__________________
Bad_Bud is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-16-2007 , 16:35   Re: Array sizes do not match.
Reply With Quote #3

I responded to that.
My original array is like 64 in size, not 1.
[ --<-@ ] Black Rose is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-16-2007 , 17:00   Re: Array sizes do not match.
Reply With Quote #4

This person attemps to do the same funky enum thing that you do:
http://forums.alliedmods.net/showpos...23&postcount=5

Solution:
http://forums.alliedmods.net/showpos...5&postcount=10
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-16-2007 , 17:10   Re: Array sizes do not match.
Reply With Quote #5

Ok. Thank you.
[ --<-@ ] Black Rose is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 01-17-2007 , 06:28   Re: Array sizes do not match.
Reply With Quote #6

My previous code was shit. Wonder how i decided that it compiles well. Today it does not compile.

Well. Hawk told that you should not use structured data at all. Very strange because PAWN manual has several samples telling how to use structured data.

I made a working example according to manual:
Code:
#include <amxmodx> enum info {     Float:info_origin[3],     info_str[10] } new array[1][info] public plugin_init() {     array[0][info_origin][0] = 1.0     array[0][info_origin][1] = 2.0     array[0][info_origin][2] = 3.0 } public plugin_cfg() {     func(array[0])     log_amx("%s", array[0][info_str]) } stock func(t[info]) {     log_amx("{ %.3f, %.3f, %.3f }", t[info_origin][0], t[info_origin][1], t[info_origin][2])     copy(t[info_str], 6, "called")     t[info_str][6] = 0 }

It compiles with warninigs, but works perfect. Warnings told us that PAWN has problems with detecting a type (tag) of enumerated items. I think that's the case.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-17-2007 , 09:59   Re: Array sizes do not match.
Reply With Quote #7

Still... I wanted to use it as arg in a function, this code doesn't do that.
[ --<-@ ] Black Rose is offline
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-17-2007 , 10:11   Re: Array sizes do not match.
Reply With Quote #8

Bah, he's never happy. Don't respond to this ambiguous thread.
__________________
Bad_Bud is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-17-2007 , 11:10   Re: Array sizes do not match.
Reply With Quote #9

Avalanche has already given me the right answer, His code is not even close to what i wanted.
You're stupid, don't ever respond in this thread again.

OT:
Seriously, who uses a picture of a dick in his avatar? How old are you? ( Sarcastic question. Don't give me an answer, I don't even wanna know. )

Last edited by [ --<-@ ] Black Rose; 01-17-2007 at 11:20.
[ --<-@ ] Black Rose is offline
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-17-2007 , 13:53   Re: Array sizes do not match.
Reply With Quote #10

I am more well loved!
__________________
Bad_Bud 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