03.03.2010, 18:23
pawn Код:
if (PlayerInfo[playerid][OwnedCar] != 1) ShowPlayerDialog(playerid, Lend, DIALOG_STYLE_INPUT, "Lend your Car", "ERROR: You are not authorized to use this!\n\nPlease input the PlayerID or PlayerName of the player you want to lend your car to.", "Select", "Cancel");
else if (sscanf(inputtext, "u", id)) ShowPlayerDialog(playerid, Lend, DIALOG_STYLE_INPUT, "Lend your Car", "ERROR: Please enter a PlayerID/PartOfName\n\nPlease input the PlayerID or PlayerName of the player you want to lend your car to.", "Select", "Cancel");
else if (id == playerid) ShowPlayerDialog(playerid, Lend, DIALOG_STYLE_INPUT, "Lend your Car", "ERROR: You cannot lend yourself a car\n\nPlease input the PlayerID or PlayerName of the player you want to lend your car to.", "Select", "Cancel");
else if (id == INVALID_PLAYER_ID) ShowPlayerDialog(playerid, Lend, DIALOG_STYLE_INPUT, "Lend your Car", "ERROR: Player not Found\n\nPlease input the PlayerID or PlayerName of the player you want to lend your car to.", "Select", "Cancel");