how to make a string array? *i forgot
i need an array to store a individual string for every player, so i can campare it with other strings and use it like string_array[id] = string1; or a simular way, i looked thru my codes and.. do i have to use ArrayGetString() and like that just for this purpose?
|
Re: how to make a string array? *i forgot
Quote:
Suppose you want to put the following in an array: Hello this is an array new szArray[5][6]; Dimension 1 = 5 for 5 words Dimension 2 = 6 because longest words are hello\array, each 5 chars in length + 1 for null so 6. To store data in them, pass it as you would with a normal string except include the array element you wish to use. new szAuthID[33][33]; get_user_authid( id , szAuthID[id] , 32 ); |
Re: how to make a string array? *i forgot
PHP Code:
edit: bugsy was faster and wrote more detailed =) |
Re: how to make a string array? *i forgot
Bugsy,
thx *_* |
| All times are GMT -4. The time now is 01:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.