Quote:
Originally Posted by JohnnyChimpo
That worked thank you very much callimuc, i just have one thing to say however. In the whole grand scheme of things isn't quite inefficient to go and add another function call there? This language should accept the form i had written the first time. That and i could be wrong, but it would be a better means of doing it, based on the two.
|
only working with player/npcs attributes. but only because they are only defined.
like cbk said, you didt define it as a array yet. if you really want to use your version you can try this
PHP Code:
const lngNumber = 8;
function onActionServerside() {
temp.filename = NULL; //like i said before, i prefer to do this
for (temp.j=0;temp.j<lngNumbers;temp.j++) {
temp.filename.add(""); //this way you are at least creating an array, it will be blank
}
for (temp.i =0;temp.i<lngNumber;temp.i++){
temp.filename[i] = "levels/translations/server_de.po";
}
}
you have to create the array by using the version i did (using
.add("something");) or by creating it like
temp.array = {"hi", "", NULL, player.head, 5, ": D"};