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 07-10-2016, 07:16 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko is a jewel in the roughKirko is a jewel in the rough
Get name variable from an object

I'm trying to get the name variable from an object but not the name variable that it thinks I'm trying to get :o

The object has a custom variable called name but when ever I echo it, it will just echo the name of the variable. this sounds confusing.. anyhow

All these echo 'c' but there's actually something assigned to temp.c.name which I'm trying to get but can't figure it out
If it helps, this data was from json which I then used loadjsonfromstring that turned it into an object.
PHP Code:
    echo(temp.c.name);
    echo(
makevar("temp.c.name"));
    echo(
temp.c.(@name)); 
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 02:50 AM.


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