Report System - Need help
#7

Quote:
Originally Posted by TheHonnor
Посмотреть сообщение
Well, I have already tried with enumerator. I used a variable to store the id for each report.
But actually, my problem is , that i don't know how to delete one item/report only from that list.
If you have all your reports in a enum with the ID stored, then that's perfect.

All you need to do is reset the enum:

Код:
new tmpReport[eReport]     //'eReport' being the name of your enum clearly
Report[reportID] = tmpReport     //this sets that specific enum instance to your enum defaults(so basically empties the enum at Report[reportID])
Then where your code is to format the string for the dialog, that you pass through ShowPlayerDialog. You'll need to do a for loop, to loop through each report and add to list, which I would imagine you're already doing for your dialog. Inside this for loop, just do an if statement to check the Report enum to see if the variables inside are set. If so, display in list, else break from the loop.


I don't know if any of that make sense, it's kind of hard to explain. If not, could you post your code please, and I can help you that way.
Reply


Messages In This Thread
Report System - Need help - by TheHonnor - 12.07.2016, 09:31
Re: Report System - Need help - by minijackc - 12.07.2016, 09:56
Re: Report System - Need help - by TheHonnor - 12.07.2016, 10:04
Re: Report System - Need help - by minijackc - 12.07.2016, 10:10
Re: Report System - Need help - by Jonesy96 - 12.07.2016, 10:22
Re: Report System - Need help - by TheHonnor - 12.07.2016, 10:37
Re: Report System - Need help - by Jonesy96 - 12.07.2016, 13:14
Re: Report System - Need help - by TheHonnor - 12.07.2016, 14:57
Re: Report System - Need help - by TheHonnor - 12.07.2016, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)