Iti dau eu un sistem de quest:
#define pQuestMapx 115
#define DIALOG_QUESTMAP 615
La enum pInfo
pQuestMap,
LA public Update(playerid, type)
case pQuestMapx:
{
mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `QuestMap`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pQuestMap], PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,var,"","");
}
La variabile pui astea
QuestP[50],
QuestWait[MAX_PLAYERS],
QuestWait[playerid] = 0;
Asta o pui tot la VARIABILE sub tazer[playerid] = 0;
QuestWait[playerid] = 0;
Astea sunt pickup=urile
http://pastebin.com/zxiRVSpW
La public OnPlayerLogin(playerid,password[]) pui asta
PlayerInfo[playerid][pQuestMap] = cache_get_field_content_int(0, "QuestMap");
si asta
{
new strb[30];
format(strb, sizeof(strb),"Quest%d",ev);
QEvent[playerid][ev] = cache_get_field_content_int(0, strb);
}
La public OnPlayerPickUpPickup(playerid, pickupid)
http://pastebin.com/QWPrJPs7
/quest http://pastebin.com/mzMRstP2
/questmap http://pastebin.com/UTt6e7k3
La public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
http://pastebin.com/vXEgHQhk