View Single Post
  #8  
Old 03-11-2010, 12:19 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Well, I have dumbed it down as simple as I could and can't seem to get this working ;[, any ideas on what I'm doing wrong?
PHP Code:
function onActionServerside(options){
temp.tokens options.tokenize();
  switch (
temp.tokens[0]){
    case 
":create":
      
temp.statement "CREATE TABLE " temp.tokens[1] @" (account,nickname DEFAULT 'unknown',currenttime DEFAULT '0')";
      
requestsql(temp.statementfalse);
      echo(
"CREATED TABLE: " temp.tokens[1]);
      break;
    case 
":insert":
      
temp.statement "INSERT INTO "temp.tokens[1] @" VALUES('"@player.account@"')";
      
requestsql(temp.statementfalse);
      echo(
"INSERTED: " player.account SPC player.nick SPC timevar2 " INTO " temp.tokens[1]);
      break;
    case 
":select":
      
temp.statement "SELECT * FROM " temp.tokens[1];
      
temp.requestsql(temp.statementfalse);
      echo(
temp.i.rows.size());
      break;
    case 
":update":
      
temp.statement "";
      
requestsql(temp.statementfalse);
      break;
    case 
":delete":
      
temp.statement "";
      
requestsql(temp.statementfalse);
      break;
  }
}
//#CLIENTSIDE
function onPlayerChats(){
triggerserver("gui",name,player.chat);

Reply With Quote