Jump to content

Question

Posted

Nick:fytza

Problema: Nu detin permisul de conducere ma duc  la checkpoint si cand dai /examen zice ca deja dai testul

Erori / warnings:-

Lini/script:

[pawn] if(strcmp(cmd, "/examen", true) == 0)

    {

if(IsPlayerConnected(playerid))

{

if(GetPlayerCash(playerid) >= 5000)

{

if(PlayerData[playerid][pCarLic] == 0 || PlayerData[playerid][pCarLic] > 2)

{

  if(PlayerToPoint(3.0,playerid,1730.5081,-2238.4375,13.5423))

  {

if(DMVPrepare[playerid] == 0)

{

              DMVPrepare[playerid] = 1;

              DMVlocation[playerid] = 1;

      }

      else

      {

  SendClientMessage(playerid,COLOR_GREY,"Deja dai testul !");

}

}

  }

else

  {

SendClientMessage(playerid,COLOR_GREY,"Deja ai licenta de sofer !" );

  }

}

  else

  {

SendClientMessage(playerid,COLOR_GREY,"Nu ai bani pentru a da testul !");

}

}

return 1;

} [/pawn]

Ai incercat sa rezolvi singur ?:da.

4 answers to this question

Recommended Posts

Posted

am scos dar tot asa zice! sau cum fac cand da /examen sa ii dea licenta direct! sa numai dea testul sa ii dea licenta!

  • Administrator
Posted

Inlocuiesti [pawn]

  if(PlayerToPoint(3.0,playerid,1730.5081,-2238.4375,13.5423))

  {

            if(DMVPrepare[playerid] == 0)

            {

              DMVPrepare[playerid] = 1;

              DMVlocation[playerid] = 1;

          }

          else

          {

              SendClientMessage(playerid,COLOR_GREY,"Deja dai testul !");

            }

                    }[/pawn] cu [pawn]PlayerInfo[playerid][pCarLic] = 1;[/pawn]

Posted

T/C. Topic Solved.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.