[Help] Indexing arrays?
#5

Donny is right, you aren't indexing them properly, and it is most likely due to the fact that you don't actually give an index at all.

Use this instead:
pawn Код:
cmd[0] = strtok(cmdtext, idx); // This tells the compiler to place the returned string into the first (and following) cell(s) of your 'cmd' array.
Hopefully this helps,

~Cueball~
Reply


Messages In This Thread
[Help] Indexing arrays? - by Ace_Menace - 29.05.2009, 23:06
Re: [Help] Indexing arrays? - by Donny_k - 29.05.2009, 23:18
Re: [Help] Indexing arrays? - by Ace_Menace - 29.05.2009, 23:24
Re: [Help] Indexing arrays? - by Donny_k - 29.05.2009, 23:42
Re: [Help] Indexing arrays? - by Cueball - 30.05.2009, 00:27
Re: [Help] Indexing arrays? - by Ace_Menace - 30.05.2009, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)