Privatecars lend not working properly
#1

pawn Код:
if(strcmp(playername, "Torran", false) == 0)
{
  if(PlayerInfo[ClickedPlayer[playerid]][LendCarTorran] == 1) SendClientMessage(playerid, RED, "You have already lent your car to this player");
  else {
    if(PlayerInfo[ClickedPlayer[playerid]][LendCarTorran] == 0) {
      PlayerInfo[ClickedPlayer[playerid]][LendCarTorran] = 1;
    }
  }
}


else if(strcmp(playername, "Nightmare", false) == 0)
{
  if(PlayerInfo[ClickedPlayer[playerid]][LendCarCamron] == 1) SendClientMessage(playerid, RED, "You have already lent your car to this player");
  else {
    if(PlayerInfo[ClickedPlayer[playerid]][LendCarCamron] == 0) {
      PlayerInfo[ClickedPlayer[playerid]][LendCarCamron] = 1;
    }
  }
}
Thats the main bit of my lendcar, And if i lend a person on server my car, it lends them it,
And if i try lend them it again it should say you already lent your car to this player,
And well if i try lend it again it says that message, But it also says ive lent my car to this player,
Anyone know why?
Reply
#2

Could you indent your code first, please?
Reply
#3

Quote:
Originally Posted by SAWC™
Could you indent your code first, please?
Done check first post
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)