Help me !!!

Started by luchgox, Dec 04, 2015, 01:31 AM

Previous topic - Next topic

luchgox


How i create my own server?and How i do port forward from a TP-link router?
please help!
 
Strength does not come from wining.Your struggles develop your strengths.

luchgox

oh now  port forwarding problem solve i did it but now its showing blank  Blank vcmp:sever 64x like this you can see it on your vcmp master list but how to make it a full server ?
Strength does not come from wining.Your struggles develop your strengths.

Mashreq

You need to do some stuff with the script to make it a 'full server'

luchgox

I am trying my best but i am first time making script's  but its replying failed loading.
Strength does not come from wining.Your struggles develop your strengths.

luchgox

Mashreq  you can check my server please what is the problem with it join there i named it Rampage Killer's Death Match
Strength does not come from wining.Your struggles develop your strengths.

Mashreq

The server contains no scripts, therefore it looks blank.
You can use the scripts which was released in the scripts showroom have a look with it.

KAKAN

1st of all, you need to learn Squirrel, then you need to see the wiki for the available functions for a VCMP server.
Then try to script a server, if you get any error, you can post it on Squirrel Scripting section.
oh no

luchgox

#7

I put this code but error showing "cmd"does not exist.
function onPlayerCommand( player, cmd, text )

if( cmd == "register" ){
  if( !text ){
   MessagePlayer( "Syntax Error!", player );
   MessagePlayer( "Correct syntax: /register <password>", player );
  }
  else if( pstats[ player.ID ].Level != 0 )MessagePlayer( " This account is already Registered", player );
  else if( pstats[ player.ID ].Logged == true ){
   MessagePlayer( "You are already logged in.", player );
  }
  else{
   pstats[ player.ID ].Register( player, text, sqliteDB );
  }
 }

 I put many cmd's but i get same error "cmd" does not exist.
only these  cmd's are working  /heal,bring,goto.
Any solution?
 
Strength does not come from wining.Your struggles develop your strengths.

Thijn

You either have another onPlayerCommand or you if/else structure is wrong.

Mashreq

You missed a bracket after onPlayerCommand.. event

Try using this
function onPlayerCommand( player, cmd, text )
{
if( cmd == "register" ){
  if( !text ){
   MessagePlayer( "Syntax Error!", player );
   MessagePlayer( "Correct syntax: /register <password>", player );
  }
  else if( pstats[ player.ID ].Level != 0 )MessagePlayer( " This account is already Registered", player );
  else if( pstats[ player.ID ].Logged == true ){
   MessagePlayer( "You are already logged in.", player );
  }
  else{
   pstats[ player.ID ].Register( player, text, sqliteDB );
  }
 }

luchgox

Strength does not come from wining.Your struggles develop your strengths.

RW

Learn Squirrel Functions! You'll make a great server and put it on the Internet XD

.

Quote from: [F.B.I]RW on Jan 28, 2016, 04:27 AMLearn Squirrel Functions!...

You think that's all it takes?
.

Murdock

Quote from: S.L.C on Jan 28, 2016, 06:28 AM
Quote from: [F.B.I]RW on Jan 28, 2016, 04:27 AMLearn Squirrel Functions!...

You think that's all it takes?

All you need are makeScript(), fixBugs() and startServer()

Xmair

An error has occured: [ The index 'Brain' doesn't exists ]
;D @Murdock

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD