Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global:onVoteReceive()
- {
- new rows, fields, i, data[128];
- cache_get_data(rows, fields);
- new missionVoteString[2048];
- if(!rows)
- {
- SendClientMessageToAll(-1, MSGPREFIX"Mission Vote: System Error");
- SetTimer("changeMission", 8000, 0);
- sysPrint(nextMissionString, "The next mission is: '%s' (%d) ", nextMissionName, nextMissionID);
- }
- while(rows)
- {
- new mVtemp[256], vmtype, vmtypestr[64];
- cache_get_row(i, 0, data);
- vmid[i] = strval(data);
- cache_get_row(i, 1, vmuid[i]);
- cache_get_row(i, 2, vmname[i]);
- cache_get_row(i, 4, data);
- vmtype = strval(data);
- getMissionTypeName(vmtype, vmtypestr);
- format(mVtemp, 256, "%d. %s (%s)", i + 1, vmname[i], vmtypestr);
- strcat(missionVoteString, mVtemp);
- strcat(missionVoteString, "\r\n");
- i++;
- rows--;
- }
- loop(playerid = 0, EXMPLAYERS) showDialog(playerid, 6184, DIALOG_STYLE_LIST, "Mission Vote", missionVoteString, "Vote", "Close");
- SetTimer("finalizeMissionVote", 10000, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement