![]() |
Appending to a clientr. array
So I'm setting an array on the serverside, it works fine. BUT it won't let me append to it... I mean, it will, but it's acting really strange.
First off, if I append to it(add(), or manually changing the arrays) it will show fine on the serverside. BUT, those same changes won't show on the clientside. This is my echo of the array on the serverside: "124,woodensword,""Wooden Sword""","arca_sword_wooden,door.png","weapon,swor d,balanced","1,1,2,0,2","0,0,0,0,0","""shortsword, """"2,2,2,0,2"""""",""longsword,""""2,2,2,0,2""""" ",""dagger,""""2,2,2,0,2""""""" This is the echo clientside: "124,woodensword,""Wooden Sword""","arca_sword_wooden,door.png","weapon,swor d,balanced","1,1,2,0,2","0,0,0,0,0","0,0,0" What's with that? Oh, and here's the script(partial/edited out): PHP Code:
|
... Asking help on appending problems; supplying a code with no appending functions. Daddy must be proud.
On topic: I know that appending to a subarray might not update the parent array's value... So it doesn't know it changed and thus doesn't update on clientside. ( This may or may not have been fixed, but it was something I had problems with in the long-past ). |
Well, I had it appending, but while trying to fix the problem, I ended up with the code that's displayed... which is essentially making blank subarrays and filling them. Same result in the end.
|
Quote:
|
Does that mean that this will be fixed soonish, or I'm screwed?
|
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 07:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.