15.07.2012, 03:12
try this :
Код:
dcmd_acheckcode(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "* You are not authorized to use this!!"); new carid; new comment[64]; if(sscanf(params, "i", carid)) return SendClientMessage(playerid,"Usage: \"/acheckcode <carid>\"); if(IsAnOwnableCar(carid)) { format(comment, sizeof(comment),"* Car id %d code is %d",carid, CarInfo[carid][cCode]); } else { format(comment, sizeof(comment),"* Car id %d code is %d",carid, VehiclePass[carid]); } SendClientMessage(playerid, COLOR_GREY,comment); return 1; }