Strings into array..
#1

I have a set of strings from the player.
Код:
/set "Name" "Sex" "Location"
I have an array.
Код:
new parray[MAX_PLAYERS][3];
How do i add the strings in to the array such that i can retrive it later...
I tried
Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
    strpack(parray[i][0], entered[item][name]);
    strpack(parray[i][1], entered[item][sex]);
    strpack(parray[i][2], entered[item][loc]);
}
I tried with format() too

But i get these errors
Код:
error 029: invalid expression, assumed zero
error 008: must be a constant expression; assumed zero
Reply


Messages In This Thread
Strings into array.. - by deather - 20.07.2010, 14:58
Re: Strings into array.. - by klavins21 - 20.07.2010, 15:00
Re: Strings into array.. - by deather - 20.07.2010, 15:11
Re: Strings into array.. - by RyDeR` - 20.07.2010, 16:07
Re: Strings into array.. - by MadeMan - 20.07.2010, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)