It is currently Fri Nov 01, 2024 12:32 am

RUNNING WITH RIFLES Multiplayer

test

Game servers 44 List provided by EpocDotFr | Players online 53


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Basic Command Handler
PostPosted: Sun Feb 22, 2015 8:07 pm 
Offline

Joined: Sun Feb 22, 2015 4:06 am
Posts: 6
I was messing around and tried to input this command into the game: http://pastebin.com/raw.php?i=TwYTub2p
It obviously didn't work,because why would I be here? Not only did it work,it disables all commands in there,such
/_g36 /_jeep /_suitcase ect.


Why I wanted to spawn a Tank? I didn't like waiting 10min for them to come in,plus,modding is fun.
Edit: Only a Admin might know about what happened,since there kinda who made the game itself, >. >
or at least they know all about it.


Top
 Profile  
 
PostPosted: Sun Feb 22, 2015 9:26 pm 
Offline

Joined: Sun Feb 22, 2015 4:06 am
Posts: 6
Bump: This is a basic question,and not long ago a admin was on...
Anyone could answer this though... Stumps me too but is it that crazy?


Top
 Profile  
 
PostPosted: Mon Feb 23, 2015 9:23 am 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
You can see the script errors by looking at %appdata%\Running with rifles\metagame.log, it should tell you where the problem is.


Top
 Profile  
 
PostPosted: Tue Feb 24, 2015 1:06 am 
Offline

Joined: Sun Feb 22, 2015 4:06 am
Posts: 6
pasik wrote:
You can see the script errors by looking at %appdata%\Running with rifles\metagame.log, it should tell you where the problem is.

I think you mean this:

20:10:19 fifo i=php://stdin, o=php://stdout
20:10:19 comms, fifo i=php://stdin, o=php://stdout
20:10:19 FATAL PHP ERROR 4: syntax error, unexpected 'else' (T_ELSE), expecting function (T_FUNCTION)
20:10:19 file C:\Games\Running With Rifles v0.99.6\media\packages\vanilla\scripts\trackers\basic_command_handler.php, line 143


Could you take a look at my code? Here is a full file,on pastebin.com.
I copied one line,the /_suitcase (else if) command and edited its set instance and settings,which is kinda the same thing.


Top
 Profile  
 
PostPosted: Tue Feb 24, 2015 6:26 am 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
Code:
      }
   }
    else  if(check_command($message, "_tank")) {
         //RWR SPAWN MOD (SPAWN TANK
         $this->spawn_instance_near_player($sender_id, "tank1.vehicle", "vehicle");
      }

Like the error description says, you broke the function :) Those two } in sequence already cause the function to end, leaving what you added outside the function breaking the syntax.


Top
 Profile  
 
PostPosted: Tue Feb 24, 2015 11:10 pm 
Offline

Joined: Sun Feb 22, 2015 4:06 am
Posts: 6
pasik wrote:
Code:
      }
   }
    else  if(check_command($message, "_tank")) {
         //RWR SPAWN MOD (SPAWN TANK
         $this->spawn_instance_near_player($sender_id, "tank1.vehicle", "vehicle");
      }

Like the error description says, you broke the function :) Those two } in sequence already cause the function to end, leaving what you added outside the function breaking the syntax.


Wow! Thanks so much! I never understood why it wasn't working! But now I know better!
By the way,is there a function to place the instance (such as a airstrike) at the mouse?
And what model would be a airstrike anyway?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group