Update dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Update dialog (
/showthread.php?tid=197690)
Update dialog -
Haydz - 09.12.2010
Alright so when a player types /mission and they click on the mission they want, what kind of thing would i do so it says "[COMPLETED] or [FINISHED] when a player has finished the certain mission.
Re: Update dialog -
Scenario - 09.12.2010
Quote:
Originally Posted by Hayden_Bruin
Alright so when a player types /mission and they click on the mission they want, what kind of thing would i do so it says "[COMPLETED] or [FINISHED] when a player has finished the certain mission.
|
You would need to store which jobs they have completed into a variable which you could then use to determine if they have completed the job. I'll give you an example:
pawn Код:
if(g_JobStatus == 1) format(string, sizeof(string), "[COMPLETED]: Trash Pickup");
else if(g_JobStatus == 0) format(string, sizeof(string), "[NOT COMPLETED]: Trash Pickup");
You will need to do the rest, but that should help you get started.