Problems with enumerated strings
#5

Quote:
Originally Posted by DeadAhead
Посмотреть сообщение
to answer both of your questions, its:
vector[ONE OF THE ENUMS] = Value;
example:

vector[a] = "12";
Wow you're so smart about things you can't prove, and are false, that's sad.
Anyway, I just realized that sadly the full array can't be used while being with enumerated and in fact if I use a value like this vector[enum_val] then it's always returning one index, which in such case will always fail.

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
I hope that was the answer you were looking for.
It is the answer, till :
struct_.pwn(14) : error 047: array sizes do not match, or destination array is too small

For now I've done the trick like this, but is it just me or in case like mine, they behave like seperate cells.. and can't be used as arrays, so then I need to make a unsafe call :
pawn Код:
main(){
    memcpy(vector[a],"a text", 0, 4*3, 32);
    memcpy(vector[b],"b text", 0, 4*3, 32);
    print(vector[a]);
    print(vector[b]);
}
Reply


Messages In This Thread
Problems with enumerated strings - by RSX - 14.01.2011, 21:49
Re: Problems with enumerated strings - by Retardedwolf - 14.01.2011, 21:52
Re: Problems with enumerated strings - by DeadAhead - 14.01.2011, 21:54
Re: Problems with enumerated strings - by JaTochNietDan - 14.01.2011, 21:57
Re: Problems with enumerated strings - by RSX - 14.01.2011, 21:57
Re: Problems with enumerated strings - by JaTochNietDan - 14.01.2011, 22:11
Re: Problems with enumerated strings - by RSX - 14.01.2011, 22:40
Re: Problems with enumerated strings - by JaTochNietDan - 15.01.2011, 03:30
Re: Problems with enumerated strings - by RSX - 15.01.2011, 14:34
Re: Problems with enumerated strings - by Goldkiller - 16.01.2011, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)