![]() |
writing to an npc flag from class?
i've done it before, but for some reason it just won't work properly
npc vardump: PHP Code:
PHP Code:
|
Quote:
PHP Code:
PHP Code:
|
For whatever reason I'm having trouble just adding to the array.
PHP Code:
|
The new[] keyword will create a completely new array. You can't expand existing arrays with it. Also, you should use the array size minus one when assigning something to the last index/field, since it starts at 0.
Not sure if it's necessary, but I always create arrays with a dynamic size like this: PHP Code:
|
Haha, yeah. I'll try that.
|
PHP Code:
|
You can use temp.array.add(element).
|
ok cool
|
| All times are GMT +2. The time now is 02:21 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.