dofile problem
 

dofile problem

Started by Josecar, 05 October, 2008, 04:10:39

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Josecar

Why this code --> dofile("config.tbl") that works perfectly well in ptokax 0.400 gives me that error in 0.411:

[23:05] S?ntaxis cannot open Config.tbl: No such file or directory

and the same for all dofile ---> dofile("Amistad/Niveles.tbl"), dofile(sCarpetaEstado.."Clonables.tbl") etc.

I'll be grateful if some help comes.

Thanks in advance.


Thor

Where is the script? Try ./scripts/Amistad/Niveles.tbl Or you can use Core.GetPtokaXPath() too.

bastya_elvtars

Actually, GetPtokaXPath() is the recommended way.
Everything could have been anything else and it would have just as much meaning.

Josecar

Worked ok.

I've used Core.GetPtokaXPath() that way:

sPtxFolder = Core.GetPtokaXPath()
dofile(sPtxFolder.."scripts/Amistad/Niveles.tbl") - Core.GetPtokaXPath() returns all via, including the last "/"

Very grateful to both of you.



SMF spam blocked by CleanTalk