ArrayPushString
What's wrong here?
Code:
Error: Code:
Code:
models/v_awp.mdl |
Re: ArrayPushString
Not sure why the handle would be invalid but you aren't creating the array correctly to store strings. You have to specify the max string size (plus the null terminator):
Code:
g_arrSkin = ArrayCreate(MAX_STRING_SIZE+1) |
Re: ArrayPushString
I dont know as well. I already added a value but still getting that error.
|
Re: ArrayPushString
Code:
--> Code:
And Code:
--> Code:
|
Re: ArrayPushString
Lol your creating the array in plugin initial and using it in plugin precache forward as i know plugin init is called after after plugin precache
And btw dont use arraygetstringhandler read the documentation |
Re: ArrayPushString
Create the array in precache as Natsheh said. Also specify the string size.
|
Re: ArrayPushString
Aah, I didn't know it. Thank you.
Just a little question, what these string sizes is used for? I mean, what size it means? Why should I specify? Why 32 or 128? |
Re: ArrayPushString
Its how many chars in each cell
|
Re: ArrayPushString
The string size is the string size . . . how many characters can be in your string. Make it at least as large as the longest string that you will have.
|
Re: ArrayPushString
Quote:
|
| All times are GMT -4. The time now is 17:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.