View Single Post
  #6  
Old 05-14-2013, 06:20 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by JohnnyChimpo View Post
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.=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"};
__________________
MEEP!
Reply With Quote