Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   loadIni() (https://forums.graalonline.com/forums/showthread.php?t=79415)

xXziroXx 04-14-2008 04:28 PM

loadIni()
 
So err... could anyone show an example of a working function using loadIni()? I cant seem to get it to work.

Chompy 04-14-2008 05:10 PM

Hmm, I can't get it to work either.. It's in getfunctions() and all.. weird

The syntax is object.loadini(string); where string is probably filepath. But it doesn't seem to load it as there are no dynamic variables and you can't access the section nor any variables in the ini file.. very weird..

xXziroXx 04-14-2008 09:26 PM

I am using the following, and yes, the NPC server have rights to .ini files in the folder:

PHP Code:

  temp.data.loadIni(temp.inifile);
  echo(
slot ":" SPC temp.data.slotA.charname); 

file:
PHP Code:

[slotA]
charname=Rawr
level
=17

[slotB]
charname=Roar
level
=

I can't get it to echo anything at all, no matter how much I try with temp.data.

Admins 04-14-2008 10:21 PM

loadini() should normally work fine, it's used internally for the gui themes, can check if there is some problem when using it by script sometime

xXziroXx 04-14-2008 10:29 PM

Quote:

Originally Posted by Stefan (Post 1386000)
loadini() should normally work fine, it's used internally for the gui themes, can check if there is some problem when using it by script sometime

Please do, because I can't get it to work even the slightest bit.


All times are GMT +2. The time now is 05:45 PM.

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