Author Topic: Need help in scripting.  (Read 9055 times)

0 Members and 1 Guest are viewing this topic.

Offline Some_one

  • Street Thug
  • *
  • Posts: 14
    • View Profile
Need help in scripting.
« on: August 08, 2014, 04:46:00 pm »
hello guyz!
i hope that you all will be fine!
well i need some help in scripting.hope you people can help me.
here are  some errors highlighted.



In these lines.



Plz help me.
« Last Edit: August 09, 2014, 02:07:36 pm by Some_one »

Offline Some_one

  • Street Thug
  • *
  • Posts: 14
    • View Profile
Re: Need help in scripting.
« Reply #1 on: August 11, 2014, 01:27:27 pm »
Please help. I am waiting for replay for nearly 4 days! If you don't know how to solve this then plz tell me.

Offline NE.Restricted

  • Wiseguy
  • **
  • Posts: 97
    • View Profile
Re: Need help in scripting.
« Reply #2 on: August 11, 2014, 07:02:00 pm »
hello guyz!
i hope that you all will be fine!
well i need some help in scripting.hope you people can help me.
here are  some errors highlighted.



In these lines.



Plz help me.
Sent full code please
I am NE.CrystalBlue!!!
Quote
i cant able to understand

Offline Some_one

  • Street Thug
  • *
  • Posts: 14
    • View Profile
Re: Need help in scripting.
« Reply #3 on: August 11, 2014, 08:23:14 pm »

Here is the full code of OnPlayerExitVehicle


public OnPlayerExitVehicle(playerid,vehicleid)
{
    RemovePlayerMarker(playerid);
    /*if(PlayerInfo[playerid][Status] == 0) {
        CheckIfZombieEnteredInVehicle[playerid] = 0;
   }*/
   if(vehicleid > 142) {
       if(R[playerid] == 1) {
           R[playerid] = 0;
      } else {
      if(EngineON[vehicleid] == 0) {
      IsInVehicle[playerid][vehicleid] = 0;
      GameTextForPlayerBottom(playerid," ");
      SetVehicleLights(vehicleid,0);
      vh[playerid][vehicleid] = 0;
      NotDamager[playerid] = 0;
      SetVehicleAlarm(vehicleid,0);
      }
      if(EngineON[vehicleid] == 1) {
      IsInVehicle[playerid][vehicleid] = 0;
      GameTextForPlayerBottom(playerid," ");
      IsEngineOnOutOfPlayer[vehicleid] = 1;
      SetVehicleLights(vehicleid,0);
      vh[playerid][vehicleid] = 0;
      NotDamager[playerid] = 0;
      SetVehicleAlarm(vehicleid,0);
          );
          return 1;
  }


Error is in last bold red lines.

Offline Some_one

  • Street Thug
  • *
  • Posts: 14
    • View Profile
Re: Need help in scripting.
« Reply #4 on: August 12, 2014, 01:08:02 pm »
Help please.
« Last Edit: August 13, 2014, 06:21:40 am by Some_one »

Offline S.L.C

  • Street Thug
  • *
  • Posts: 42
  • Sorry if you weren't impressed!
    • View Profile
Re: Need help in scripting.
« Reply #5 on: August 13, 2014, 07:57:25 am »
I believe this:
Code: [Select]
);Should be just this:
Code: [Select]
)Ex.
Code: [Select]
)
return 1;

Offline Some_one

  • Street Thug
  • *
  • Posts: 14
    • View Profile
Re: Need help in scripting.
« Reply #6 on: August 13, 2014, 08:35:33 am »
Showing error again but now its showing 4 errors instead 6,Thnx for help.
If you can then solve these errors.


Offline NE.Restricted

  • Wiseguy
  • **
  • Posts: 97
    • View Profile
Re: Need help in scripting.
« Reply #7 on: August 13, 2014, 03:49:17 pm »

Here is the full code of OnPlayerExitVehicle


public OnPlayerExitVehicle(playerid,vehicleid)
{
    RemovePlayerMarker(playerid);
    /*if(PlayerInfo[playerid][Status] == 0) {
        CheckIfZombieEnteredInVehicle[playerid] = 0;
   }*/
   if(vehicleid > 142) {
       if(R[playerid] == 1) {
           R[playerid] = 0;
      } else {
      if(EngineON[vehicleid] == 0) {
      IsInVehicle[playerid][vehicleid] = 0;
      GameTextForPlayerBottom(playerid," ");
      SetVehicleLights(vehicleid,0);
      vh[playerid][vehicleid] = 0;
      NotDamager[playerid] = 0;
      SetVehicleAlarm(vehicleid,0);
      }
      if(EngineON[vehicleid] == 1) {
      IsInVehicle[playerid][vehicleid] = 0;
      GameTextForPlayerBottom(playerid," ");
      IsEngineOnOutOfPlayer[vehicleid] = 1;
      SetVehicleLights(vehicleid,0);
      vh[playerid][vehicleid] = 0;
      NotDamager[playerid] = 0;
      SetVehicleAlarm(vehicleid,0);
          );
          return 1;
  }


Error is in last bold red lines.
Change ); to }
and fixed
I am NE.CrystalBlue!!!
Quote
i cant able to understand

Offline Some_one

  • Street Thug
  • *
  • Posts: 14
    • View Profile
Re: Need help in scripting.
« Reply #8 on: August 13, 2014, 07:50:01 pm »

Here is the full code of OnPlayerExitVehicle


public OnPlayerExitVehicle(playerid,vehicleid)
{
    RemovePlayerMarker(playerid);
    /*if(PlayerInfo[playerid][Status] == 0) {
        CheckIfZombieEnteredInVehicle[playerid] = 0;
   }*/
   if(vehicleid > 142) {
       if(R[playerid] == 1) {
           R[playerid] = 0;
      } else {
      if(EngineON[vehicleid] == 0) {
      IsInVehicle[playerid][vehicleid] = 0;
      GameTextForPlayerBottom(playerid," ");
      SetVehicleLights(vehicleid,0);
      vh[playerid][vehicleid] = 0;
      NotDamager[playerid] = 0;
      SetVehicleAlarm(vehicleid,0);
      }
      if(EngineON[vehicleid] == 1) {
      IsInVehicle[playerid][vehicleid] = 0;
      GameTextForPlayerBottom(playerid," ");
      IsEngineOnOutOfPlayer[vehicleid] = 1;
      SetVehicleLights(vehicleid,0);
      vh[playerid][vehicleid] = 0;
      NotDamager[playerid] = 0;
      SetVehicleAlarm(vehicleid,0);
          );
          return 1;
  }


Error is in last bold red lines.
Change ); to }
and fixed

THNX FOR HELP

Offline Spidey

  • Street Thug
  • *
  • Posts: 37
  • iam good scripter and iam computer genuis too
    • View Profile
    • Fight gangwar server
Re: Need help in scripting.
« Reply #9 on: September 07, 2014, 10:50:44 am »
how to make .amx plzz tell lucifer

Offline rohanaj60

  • Street Thug
  • *
  • Posts: 27
  • I am a great scripter :D
    • View Profile
Re: Need help in scripting.
« Reply #10 on: November 02, 2014, 02:12:17 am »
how to make .amx plzz tell lucifer
Compile by pawno