Author Topic: what is the problem in this  (Read 1750 times)

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
what is the problem in this
« on: August 12, 2012, 11:01:40 pm »
Quote
function onPlayerEnterSphere( player, Sph )
{
    Sph.Remove();
   if ( player.Vehicle )
   {
   CallServerFunc( "one/one1.nut", "one2", FindLocalPlayer() );
   }
    return 1;
}


it says


the 42 line is CallServerFunc( "one/one1.nut", "one2", FindLocalPlayer() );
« Last Edit: August 12, 2012, 11:05:16 pm by mimomohamed »

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: what is the problem in this
« Reply #1 on: August 13, 2012, 04:00:54 pm »
You're running an client script as server script.
Change your script.xml file so it says client="1" behind the file.

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: what is the problem in this
« Reply #2 on: August 14, 2012, 11:39:51 am »
If I have understood you well ;
I can't make it client="1"
because i need it
function onPlayerEnterSphere( plr, sphere )

so i have made a different that i made

CallClientFunc( plr, ""one/one1.nut", "one2" );

but now no any wrong appear in the server.exe when i activate this function and no thing happen so help me please why not working ???????

 

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: what is the problem in this
« Reply #3 on: August 15, 2012, 09:28:37 pm »
Please help me it doesn't work why why why why ?

VetalYA

  • Guest
Re: what is the problem in this
« Reply #4 on: August 16, 2012, 09:01:57 pm »
it doesn't work
Because, it depends on what you want to get (as a result).

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: what is the problem in this
« Reply #5 on: August 16, 2012, 09:09:16 pm »
i have called the right function and can u explain more  !!

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: what is the problem in this
« Reply #6 on: August 17, 2012, 12:08:08 pm »
You can do the thing you want in a client script as there is a onClientEnterSphere event.

 

© Liberty Unleashed Team.