Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-08-2005, 11:29 PM
Silent Silent is offline
<3
Silent's Avatar
Join Date: Mar 2005
Location: England
Posts: 132
Silent is on a distinguished road
Send a message via AIM to Silent Send a message via MSN to Silent
Multidimensional array problem

I have a class named silent_example which is joined to the player at logon, which is as follows:


PHP Code:
function onCreated() {
  echo(
"silent_example: Joined to " player.account);
  
player.clientr.example = new[2][2];
}

public function 
example_run() {
  echo(
"silent_example: Setting array value");
  
player.clientr.example[1][1] = 5;

Basically, the "player.clientr.example[1][1] = 5;" isn't doing anything. I've also tried player.clientr.example.replace(1,{0,5}) and player.clientr.example[1].replace(1,5) - nothing seems to work.

The array is being created fine, I can add to the array fine, both echos are working - I just can't edit the values from inside that public function. Any ideas?


Edit: Uh. Okay. That line doesn't work inside the onCreated either. What the hell?
__________________
Quote:
Originally Posted by MilkyWay0016
The Bible also says things like...

"Stone disobedient children" (Deuteronomy 21:18-21)
Quote:
Originally Posted by Loriel
Disobedient children are likely enough to get stoned already, I think.

Last edited by Silent; 09-08-2005 at 11:45 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.