Дата: 22.11.2010, Понедельник, 13:26:53 | Сообщение # $NUMBER
Группа: Пользователи
Сообщений: 32
У меня у /rentcar тачек неработает /lock когда набираю команду пишет unknown command и в магазине тоже ключ купить невозможно тоже самое пишет что делать кто нибудь подскажите в чём проблема?
Дата: 22.11.2010, Понедельник, 14:43:00 | Сообщение # $NUMBER
Группа: Пользователи
Сообщений: 32
да команда есть, главное домашние тачки работают с /lock а ренткаровские нет и в магазе тоже ключи некупить!
Дата: 22.11.2010, Понедельник, 16:29:01 | Сообщение # $NUMBER
Группа: Пользователи
Сообщений: 32
Вот команда /lock
if(strcmp(cmd, "/lock", true) == 0) { if(IsPlayerConnected(playerid)) { new carid; if (gTeam[playerid] == 2 || gTeam[playerid] == 1) { if(gLastCar[playerid] == 0 && PlayerInfo[playerid][pPhousekey] == 255) { SendClientMessage(playerid, COLOR_GRAD2, " Ó Âàñ íåò Òðàíñïîðòíîãî ñðåäñòâà."); return 1; } else if(gLastCar[playerid] != 0 && gLastCar[playerid] != PlayerInfo[playerid][pPhousekey]+1) { if (HireCar[playerid] != gLastCar[playerid] && HireCar[playerid] != 299) { gLastDriver[HireCar[playerid]] = 300; gCarLock[HireCar[playerid]] = 0; UnLockCar(HireCar[playerid]); } HireCar[playerid] = gLastCar[playerid]; } } if (PlayerInfo[playerid][pPhousekey] == 255) { if(HireCar[playerid] == 299) { SendClientMessage(playerid, COLOR_GRAD2, " Ó Âàñ íåò Òðàíñïîðòíîãî ñðåäñòâà."); return 1; } } carid = PlayerInfo[playerid][pPhousekey]+1; if(HireCar[playerid] != 299 && !SwitchKey[playerid]) { carid = HireCar[playerid]; } //new driver = gLastDriver[carid]; new lockstatus = gCarLock[carid]; new Float:cx,Float:cy,Float:cz; GetVehiclePos(carid, cx, cy, cz); switch (lockstatus) { case 0: { if(HireCar[playerid] == 299 && PlayerInfo[playerid][pPhousekey] == 255) { SendClientMessage(playerid, COLOR_GRAD2, " Ó Âàñ íåò Òðàíñïîðòíîãî ñðåäñòâà"); return 1; } if(HireCar[playerid] == carid && !SwitchKey[playerid]) { GameTextForPlayer(playerid, "~w~Hire Vehicle ~r~Locked", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); gCarLock[carid] = 1; LockCar(carid); } else if (PlayerInfo[playerid][pPhousekey] == carid-1) { GameTextForPlayer(playerid, "~w~House Vehicle ~r~Locked", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); gCarLock[carid] = 1; LockCar(carid); return 1; } } case 1: { if(HireCar[playerid] == 299 && PlayerInfo[playerid][pPhousekey] == 255) { SendClientMessage(playerid, COLOR_GRAD2, " Ó Âàñ íåò Òðàíñïîðòíîãî ñðåäñòâà"); return 1; } if(HireCar[playerid] == carid && !SwitchKey[playerid]) { GameTextForPlayer(playerid, "~w~Hire Vehicle ~g~Unlocked", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); gCarLock[carid] = 0; UnLockCar(carid); } if (PlayerInfo[playerid][pPhousekey] == carid-1) { GameTextForPlayer(playerid, "~w~House Vehicle ~g~Unlocked", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); gCarLock[carid] = 0; UnLockCar(carid); return 1; } } default: { SendClientMessage(playerid, COLOR_GRAD2, " Îøèáêà"); } } if(carid == 256) { SendClientMessage(playerid, COLOR_GRAD2, " Ó Âàñ íåò Òðàíñïîðòíîãî ñðåäñòâà !"); } } return 1; }
Вот /buy
else if(item == 5 && GetPlayerMoney(playerid) > 5000) { if (gLastCar[playerid] != 0) { if(HireCar[playerid] != 299) { gCarLock[HireCar[playerid]] = 0; UnLockCar(HireCar[playerid]); HireCar[playerid] = 299; } if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 5000 / 100; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 5000 - price; GivePlayerMoney(playerid,- payout); SBizzInfo[9][sbTill] += payout; ExtortionSBiz(9, payout); format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); } else { GivePlayerMoney(playerid,-5000); SBizzInfo[9][sbTill] += 5000; ExtortionSBiz(9, 5000); format(string, sizeof(string), "~r~-$%d", 5000); GameTextForPlayer(playerid, string, 5000, 1); } SBizzInfo[9][sbProducts]--; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); HireCar[playerid] = gLastCar[playerid]; format(string, sizeof(string), "Êëþ÷ Êóïèë, Âû Ìîæåòå Çàõâàòèòü Ñâîå Ïîñëåäíåå Òðàíñïîðòíîå ñðåäñòâî."); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_WHITE, "Íàìåê: èñïîëüçóéòå /lock "); } else { SendClientMessage(playerid, COLOR_WHITE, " Ó Âàñ íåò Òðàíñïîðòíîãî ñðåäñòâà, ÷òîáû ñîîòâåòñòâîâàòü ýòîìó ê !"); } return 1; } else if (item == 6 && GetPlayerMoney(playerid) > 10000) { if(PlayerInfo[playerid][pPhousekey] != 255) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1 && HireCar[PlayerInfo[playerid][pPhousekey]+1]) { HireCar[i] = 299; } } if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 10000 / 100; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 10000 - price; GivePlayerMoney(playerid,- payout); SBizzInfo[9][sbTill] += payout; ExtortionSBiz(9, payout); format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); } else { GivePlayerMoney(playerid,-10000); SBizzInfo[9][sbTill] += 10000; ExtortionSBiz(9, 10000); format(string, sizeof(string), "~r~-$%d", 10000); GameTextForPlayer(playerid, string, 5000, 1); } SBizzInfo[9][sbProducts]--; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "New Locks Purchased."); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_WHITE, "Íàìåê: èñïîëüçóéòå /lock "); } else { SendClientMessage(playerid, COLOR_WHITE, " Ó Âàñ íåò Òðàíñïîðòíîãî ñðåäñòâà, ÷òîáû ñîîòâåòñòâîâàòü ýòîìó ê !"); } return 1; }
Ответьте побыстрее а то я уже замаялся с этим багом!