getstringkeys() can't but used directly on an object (
obj.getstringkeys())
Use it inside a with() scope.
And, for the files, use obj.getDynamicVarNames();
PHP Code:
function onCreated() {
temp.file.loadvars("gangs/PizzaClan.txt");
temp.gang_PizzaClan = new TStaticVar();
for(temp.var : temp.file.getDynamicVarNames()) {
temp.gang_PizzaClan.(@var) = temp.file.(@var);
}
temp.keys = 0;
with(temp.gang_PizzaClan) {
temp.keys = getstringkeys("variable_prefix");
}
}
Just a fast mockup, but something like that would work I guess