Privatecars lend not working properly - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Privatecars lend not working properly (
/showthread.php?tid=131452)
Privatecars lend not working properly -
Torran - 03.03.2010
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?
Re: Privatecars lend not working properly -
Miguel - 03.03.2010
Could you indent your code first, please?
Re: Privatecars lend not working properly -
Torran - 03.03.2010
Quote:
Originally Posted by SAWC™
Could you indent your code first, please?
|
Done check first post