View Single Post
  #3  
Old 03-13-2018, 06:41 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
very resourceful didn't think of that regarding the levels sub-directory.
That getCallStack was a test thing that i forgot to remove, I apologies for that.

Will update it using levels and escapstring2. But you could use decimals and integars inside the textfile with something like this.
PHP Code:
SQL.update("test/test", {"test"timevar2,  timevar2});

UPDATE
  test
SET
  test2 
= %2$i,
  
test3= %3$d,
WHERE
  test 
'%1$s' 
Regarding the non-existent function I forgot to add that not sure who wrote this function, maybe Novo?

PHP Code:
DatabaseString
public function replaceAll(temp.texttemp.matchtemp.replace) {
  
temp.prev 0;
  
temp.output "";
  do {
    
temp.found indexOf(temp.texttemp.matchtemp.prev);
    if (
temp.found == -1) {
      
temp.output @= temp.text.substring(temp.prev, -1);
      return 
temp.output;
    } else {
      
temp.output @= temp.text.substring(temp.prevtemp.found temp.prev) @ temp.replace;
      
temp.prev temp.found temp.match.length();
    }
  } while (
temp.found != -1);
  return 
temp.output;
}

public function 
indexOf(temp.texttemp.matchtemp.offset) {
  for (
temp.temp.offsettemp.text.length(); ++) {
    if (
temp.text.substring(temp.itemp.match.length()) == temp.match) {
      return 
temp.i;
    }
  }
  return -
1;

__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]




Last edited by MysticalDragon; 03-13-2018 at 07:59 PM..
Reply With Quote