Jump to content
  • 0

Comanda /examen


fytza

Question

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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]

Link to comment
Share on other sites

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.