Помогите не работает проверка
|
|
Fresh_Stream |
Дата: Четверг, 09.06.2016, 11:39 | Сообщение # 1
|
Боец
Сообщений: 129
Статус: Offline
|
Когда у тебя Questexp = 16 должен исчезать CheckPoint,но он не исчезает new
Код new Quest,Questexp,Queststat public OnPlayerEnterCheckpoint(playerid)
Код new qe=Questexp[playerid]; new string[50]; if(Quest[playerid]==3) { if(qe==2||qe==4||qe==6||qe==8||qe==10||qe==12||qe==14) { DisablePlayerCheckpoint(playerid); Questexp[playerid]+=1; Queststat[playerid]+=1; f("Äåðåâî ïðèíåñåíî [%i/8]",Queststat[playerid]); SCM(playerid,COLOR_BLUE,string); } return 1; } if(Quest[playerid] == 3) { if(qe == 16) { DisablePlayerCheckpoint(playerid); Quest[playerid]=0; Questexp[playerid]=0; Player[playerid][pExp]+=3; Player[playerid][pMoney]+=1000; SCM(playerid,COLOR_GREEN,"Íàãðàäà:");SCM(playerid,COLOR_GREEN,"+3 Îïûò");SCM(playerid,COLOR_GREEN,"+1000 âèðò"); PlayerPlaySound(playerid,31204,0.0,0.0,0.0); } return 1; } public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
Код new qe=Questexp[playerid]; if(newkeys == KEY_YES) { if(IsPlayerInRangeOfPoint(playerid,2.0,-1992.1,-2386.83,31.09)) { StartQuest SCM(playerid,COLOR_ORANGE,"ß - Ìîãó ëè ÿ òóò ïîðàáîòàòü?"); SCM(playerid,COLOR_YELLOW,"Ëåñíèê - Êîíå÷íî,ÿ êàê-ðàç èùþ ïîìîøíèêîâ"); SCM(playerid,COLOR_YELLOW,"Ëåñíèê - À òåïåðü èäè ðóáè äåðåâî"); Quest[playerid]=3; Questexp[playerid]=1; } if(IsPlayerInRangeOfPoint(playerid,8.0,-1974.8276,-2366.3687,30.6250)||IsPlayerInRangeOfPoint(playerid,8.0,-1959.7010,-2376.5415,30.6250)||IsPlayerInRangeOfPoint(playerid,8.0,-1961.3325,-2360.0825,30.6250)||IsPlayerInRangeOfPoint(playerid,8.0,-1979.3115,-2349.7776,31.8752)||IsPlayerInRangeOfPoint(playerid,8.0,-1964.2098,-2344.5813,33.5582)) { if(Quest[playerid]!=3)return SCM(playerid,0xFFFFFFFF,"Ó âàñ íåò áåíçîïèëû"); else if (qe==1||qe==3||qe==5||qe==7||qe==9||qe==11||qe==13||qe==15) { Questexp[playerid]+=1; SPC(playerid,-2004.4946,-2371.6023,30.6250,6); } else { SCM(playerid,COLOR_GREEN,"Îòíåñè äåðåâî íà ñêëàä"); } } }
FCS
Работы: [Урок]Система Satiety - http://cheat-master.ru/forum/117-584800-1 [Command]Снять одежду - http://cheat-master.ru/forum/124-567074-1 [FS]Admin Helper - http://cheat-master.ru/forum/122-589828-1 [PWN]new.pwn со всеми пабликами - http://cheat-master.ru/forum/125-718522-1
Сообщение отредактировал Fresh_Stream - Четверг, 09.06.2016, 11:40 |
|
|
|
Wjik |
Дата: Четверг, 09.06.2016, 11:55 | Сообщение # 2
|
Любитель
Сообщений: 40
Статус: Offline
|
Цитата new qe = Questexp[playerid]; new string[50]; if(Quest[playerid] == 3) { if(qe == 2 || qe == 4 || qe == 6 || qe == 8 || qe == 10 || qe == 12 || qe == 14) { DisablePlayerCheckpoint(playerid); Questexp[playerid]+=1; Queststat[playerid]+=1; f("Äåðåâî ïðèíåñåíî [%i/8]",Queststat[playerid]); SCM(playerid,COLOR_BLUE,string); } return 1; } if(Quest[playerid] == 3) { if(qe == 16) { DisablePlayerCheckpoint(playerid); Quest[playerid]=0; Questexp[playerid]=0; Player[playerid][pExp]+=3; Player[playerid][pMoney]+=1000; SCM(playerid,COLOR_GREEN,"Íàãðàäà:");SCM(playerid,COLOR_GREEN,"+3 Îïûò");SCM(playerid,COLOR_GREEN,"+1000 âèðò"); PlayerPlaySound(playerid,31204,0.0,0.0,0.0); } return 1; }
это замени на свое
Wj1ch4r4
Сообщение отредактировал Wjik - Четверг, 09.06.2016, 11:59 |
|
|
|
Fresh_Stream |
Дата: Четверг, 09.06.2016, 12:09 | Сообщение # 3
|
Боец
Сообщений: 129
Статус: Offline
|
Wjik, Всё равно
FCS
Работы: [Урок]Система Satiety - http://cheat-master.ru/forum/117-584800-1 [Command]Снять одежду - http://cheat-master.ru/forum/124-567074-1 [FS]Admin Helper - http://cheat-master.ru/forum/122-589828-1 [PWN]new.pwn со всеми пабликами - http://cheat-master.ru/forum/125-718522-1
|
|
|
|
Wjik |
Дата: Четверг, 09.06.2016, 12:20 | Сообщение # 4
|
Любитель
Сообщений: 40
Статус: Offline
|
Код new qe = Questexp[playerid]; new string[50]; if(Quest[playerid] == 3) { if(qe == 2 || qe == 4 || qe == 6 || qe == 8 || qe == 10 || qe == 12 || qe == 14) { DisablePlayerCheckpoint(playerid); Questexp[playerid]+=1; Queststat[playerid]+=1; f("Äåðåâî ïðèíåñåíî [%i/8]",Queststat[playerid]); SCM(playerid,COLOR_BLUE,string); } return 1; } if(Quest[playerid] == 3) { if(Questexp[playerid] == 16) { DisablePlayerCheckpoint(playerid); Quest[playerid]=0; Questexp[playerid]=0; Player[playerid][pExp]+=3; Player[playerid][pMoney]+=1000; SCM(playerid,COLOR_GREEN,"Íàãðàäà:");SCM(playerid,COLOR_GREEN,"+3 Îïûò");SCM(playerid,COLOR_GREEN,"+1000 âèðò"); PlayerPlaySound(playerid,31204,0.0,0.0,0.0); } return 1; }
попробуй еще так
Wj1ch4r4
|
|
|
|
FryGames[CM] |
Дата: Четверг, 09.06.2016, 12:25 | Сообщение # 5
|
Боец
Сообщений: 130
Статус: Offline
|
Код new qe=Questexp[playerid]; new string[50]; if(Quest[playerid] == 3) { if(qe==2||qe==4||qe==6||qe==8||qe==10||qe==12||qe==14) { DisablePlayerCheckpoint(playerid); Questexp[playerid]+=1; Queststat[playerid]+=1; f("Äåðåâî ïðèíåñåíî [%i/8]",Queststat[playerid]); SCM(playerid,COLOR_BLUE,string); } else if(qe == 16) { DisablePlayerCheckpoint(playerid); Quest[playerid]=0; Questexp[playerid]=0; Player[playerid][pExp]+=3; Player[playerid][pMoney]+=1000; SCM(playerid,COLOR_GREEN,"Íàãðàäà:"); SCM(playerid,COLOR_GREEN,"+3Îïûò"); SCM(playerid,COLOR_GREEN,"+1000 âèðò"); PlayerPlaySound(playerid,31204,0.0,0.0,0.0); } return 1; }
Сообщение отредактировал FryGames[CM] - Четверг, 09.06.2016, 12:27 |
|
|
|
Wjik |
Дата: Четверг, 09.06.2016, 12:26 | Сообщение # 6
|
Любитель
Сообщений: 40
Статус: Offline
|
быдло код какой-то
Wj1ch4r4
|
|
|
|
Fresh_Stream |
Дата: Четверг, 09.06.2016, 13:55 | Сообщение # 7
|
Боец
Сообщений: 129
Статус: Offline
|
FryGames[CM], Спасибо помог
FCS
Работы: [Урок]Система Satiety - http://cheat-master.ru/forum/117-584800-1 [Command]Снять одежду - http://cheat-master.ru/forum/124-567074-1 [FS]Admin Helper - http://cheat-master.ru/forum/122-589828-1 [PWN]new.pwn со всеми пабликами - http://cheat-master.ru/forum/125-718522-1
|
|
|
|