View Single Post
  #4  
Old 06-30-2016, 12:00 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
Quote:
Originally Posted by Gunderak View Post
Hmm I'm out of ideas then... Also hey, I remember you from when I was on Era PC ha

PHP Code:
temp.fold = new[15000]; 
Was my attempt when I thought maybe the default array size was 10k.
Default (Not sure if you can even change the max limitations) size is 9999.

PHP Code:
function onCreated() {
  
temp.fold = new[15000];  
  
temp.fold[9999] = {"test"};  
  echo(
temp.fold[9999]);  
}
The script of NPC Cache has been updated by Carlito
test

Echoes Test while

PHP Code:
function onCreated() {
  
temp.fold = new[15000];  
  
temp.fold[10000] = {"test"};  
  echo(
temp.fold[10000]);  
}
The script of NPC Cache has been updated by Carlito 
echoes nothing.

I also noticed the method in which you are using to get the players account. What if they don't have a player house? How I would personally do it without loading the accounts folder directly is every player that logs into the game register them in SQL.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]




Last edited by MysticalDragon; 06-30-2016 at 12:11 PM..
Reply With Quote