if (PlayerInfo[playerid][OwnedCar] != 1) SendClientMessage(playerid, RED, "You are not authorized to use this command");
else if (sscanf(inputtext, "u", id)) SendClientMessage(playerid, RED, "Please enter a PlayerID/PartOfName");
else if (id == playerid) SendClientMessage(playerid, RED, "You cannot lend yourself a car");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, RED, "Player not Found");
Originally Posted by GhoulSlayeR
Reshow the dialog.
![]() |
if (PlayerInfo[playerid][OwnedCar] != 1) SendClientMessage(playerid, RED, "You are not authorized to use this command");
else if (sscanf(inputtext, "u", id)) SendClientMessage(playerid, RED, "Please enter a PlayerID/PartOfName");
else if (id == playerid) SendClientMessage(playerid, RED, "You cannot lend yourself a car");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, RED, "Player not Found");
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");