- 0
Problema quest de craciun
-
Similar Content
-
- 2 answers
- 309 views
-
Problema turf
By Soryn.,
- 3 answers
- 303 views
-
- 1 reply
- 185 views
-
- 9 replies
- 282 views
-
Problema
By ImJustSlim,
- 3 answers
- 289 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
NaturaL
Salut.Am o problema cu questu de craciun si anume ca cadourile(scuzati cacofonia) pot fi adunate doar in ordinea in care sunt puse locatiile lor in gm. De exemplu eu vreau sa iau Cadoul cu numarul 7, dar nu este posibil deoarece nu am luat primele cadouri dinaintea acestui numar. Am incercat sa scot eu niste lini de acolo care credeam ca duce la acest lucru dar degeaba..
Aici este codul cu locatiile cadourilor:
Si aici se afla restul:
if(QuestEventState == 1) // xmas quest { new str[256]; if(PlayerInfo[playerid][pLastGift] == sizeof(QuestPositions) && PlayerInfo[playerid][pLastGift] == 999) return SCM(playerid, -1, "Ai gasit deja toate cadourile!"); if(pickupid == QuestPickups[PlayerInfo[playerid][pLastGift]]) { // PlayerInfo[playerid][pLastGift] ++; IncreasePlayerGift(playerid); if(PlayerInfo[playerid][pLastGift] != sizeof(QuestPositions)) { format(str,sizeof(str), "%d din %d %s gasite!", PlayerInfo[playerid][pLastGift], sizeof(QuestPositions), QuestSingleName); GameTextForPlayer(playerid, str, 3000, 3); } else { new name[MAX_PLAYERS], string[256]; format(str,sizeof(str), "Toate %s au fost gasite!", QuestSingleName); //Cadourile gasite, mesaj. + premiul. GameTextForPlayer(playerid, str, 3000, 3); GivePlayerCash(playerid, 2500000); Update(playerid, pCashx); PlayerInfo[playerid][pRespect] += 15; Update(playerid, pRespectx); PlayerInfo[playerid][pGold] += 2000; Update(playerid, pGoldx); PlayerInfo[playerid][pRob] += 20; Update(playerid, pRobx); PlayerInfo[playerid][pLastGift] = 999; SCM(playerid, COLOR_YELLOW, "Felicitari! Ai gasit toate cadourile."); SCM(playerid, COLOR_YELLOW, "Pentru asta staff-ul EvoSKILL te premiaza cu urmatoarele:"); SCM(playerid, COLOR_YELLOW, "2.500.000$, 15 Respect Points, 20 Rob Points si 2000 Gold. Sarbatori Fericite!"); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s a terminat quest-ul de craciun! Felicitari si Sarbatori fericite!", name); SendClientMessageToAll(-1, string); } } else { format(str,sizeof(str), "(%s) {FFFFFF}Ai gasit deja acest cadou. Cadouri gasite: %d/20.", QuestName, PlayerInfo[playerid][pLastGift]); //Nu e inima corecta. SCM(playerid, COLOR_LIGHTRED, str); } }
Nu astept o intreaga rezolvare, doar un mic start de unde sa incep. Multumesc anticipat!
Link to comment
Share on other sites
4 answers to this question
Recommended Posts