What's wrong here?!
#1

pawn Код:
if(strcmp(cmd, "/entrafbi", true) == 0)
    {
      if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2)
      {
       if(IsPlayerInRangeOfPoint(playerid,5.0,-1979.1746,428.2549,24.8454)
        {
        SetVehiclePos(GetPlayerVehicleID, -2025.1678,405.3524,2.8828);
        SetPlayerPos(playerid, -2025.1678,405.3524,2.8828);
        PutPlayerInVehicle(playerid, gLastCar[playerid], 1);
        }
       if(IsPlayerInRangeOfPoint(playerid,5.0,-2025.1678,405.3524,2.8828)
       {
       SetVehiclePos(GetPlayerVehicleID, -1979.1746,428.2549,24.8454);
       SetPlayerPos(playerid,-1979.1746,428.2549,24.8454);
        PutPlayerInVehicle(playerid, gLastCar[playerid], 1);
       }
      }
        else
      {
      SendClientMessage(playerid, WHITE, "* Non hai le chiavi di questo garage!");
      return 1;
      }
What's wrong?
I can't compile.
Reply
#2

to avoid the errors type that one instead:
pawn Код:
if(strcmp(cmd, "/entrafbi", true) == 0)
    {
      if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pMember] != 2) return    SendClientMessage(playerid, WHITE, "* Non hai le chiavi di questo garage!");
       
        if(IsPlayerInRangeOfPoint(playerid,5.0,-1979.1746,428.2549,24.8454)
        {
        SetVehiclePos(GetPlayerVehicleID, -2025.1678,405.3524,2.8828);
        SetPlayerPos(playerid, -2025.1678,405.3524,2.8828);
        PutPlayerInVehicle(playerid, gLastCar[playerid], 1);
        }
       else if(IsPlayerInRangeOfPoint(playerid,5.0,-2025.1678,405.3524,2.8828)
       {
       SetVehiclePos(GetPlayerVehicleID, -1979.1746,428.2549,24.8454);
       SetPlayerPos(playerid,-1979.1746,428.2549,24.8454);
        PutPlayerInVehicle(playerid, gLastCar[playerid], 1);
       }
     return 1;
     }
Reply
#3

Resolved!
pawn Код:
if(strcmp(cmd, "/entrafbi", true) == 0)
    {
      if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2)
      {
       if(IsPlayerInRangeOfPoint(playerid,5.0,-1979.1746,428.2549,24.8454))//The )) !
        {
        SetVehiclePos(GetPlayerVehicleID, -2025.1678,405.3524,2.8828);
        SetPlayerPos(playerid, -2025.1678,405.3524,2.8828);
        PutPlayerInVehicle(playerid, gLastCar[playerid], 1);
        }
       if(IsPlayerInRangeOfPoint(playerid,5.0,-2025.1678,405.3524,2.8828))
       {
       SetVehiclePos(GetPlayerVehicleID, -1979.1746,428.2549,24.8454);
       SetPlayerPos(playerid,-1979.1746,428.2549,24.8454);
        PutPlayerInVehicle(playerid, gLastCar[playerid], 1);
       }
      }
        else
      {
      SendClientMessage(playerid, WHITE, "* Non hai le chiavi di questo garage!");
      return 1;
      }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)