Thread: [Solved] What wrong is my array?
View Single Post
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 08-08-2017 , 08:27   Re: What wrong is my array?
Reply With Quote #6

Quote:
Originally Posted by inklesspen View Post
You want push string... then you need STRING-array
To be more clear, your words array should probably be something like new String:words[100][2][32].

Quote:
Originally Posted by inklesspen View Post
and use strcopy instead just setting value
There's nothing wrong with direct assignment given that:
  • The arrays are statically sized (his are)
  • The destination is at least as big as the source (they should be, at least after he fixes his error)
  • You make sure you don't miss a null terminator if you're working with strings (KVGetString ensures it in his case)
Fyren is offline