20.08.2013, 20:37
Код:
CMD:repair(playerid, params[]) { new giveplayerid, ispassenger, str[128], price; if(PlayerInfo[playerid][pFaction] != 7) return SendClientMessage(playerid, -1, "You are not authorized to use that command!"); if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player specifed."); if(sscanf(params, "ds", giveplayerid, price)); { SendClientMessage(playerid, -1, "USAGE: /repair [playerid][price]"); return 1; } if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && ispassenger) return SendClientMessage(playerid, COLOR_RED, "That player is not in a vehicle"); format(str, sizeof(str), "%s would like to repair \nyour car for you for : $%d", GetName(playerid), price); ShowPlayerDialog(giveplayerid, DIALOG_REPAIR, DIALOG_SYLE_MSGBOX, str); return 1;
The line with the empty statement is:
Код:
if(sscanf(params, "ds", giveplayerid, price));