[Help] lotto limit. got the code but need what should be in

06/10/2009 16:55 editor05#1
here's the code im thinkin... im starting and learning fast... just need explanations.

Red is my question..

if (CSocket.Client.whatidishere = 10)
{
else
{
Text("I'm sorry, you are only allowed for 10 draws per day. Please come again tomorrow", CSocket);
Link("Whatever.", 255, CSocket);
End(CSocket);
}
}
break;

Thnks
06/10/2009 17:13 kiltz#2
i dunno much about the code, but the logic is you need to make a counter which limit only up to 10 entry, record time(clock,date) of the last entry compare the time/date of the last entry to next day entry and he should be allowed again to lottery.. o well i dunno..
06/10/2009 17:27 AndreaCo#3
nah u just gotta make it so at a specific time you want it to reset it will reset every characters lotto times to 0
06/13/2009 13:12 editor05#4
Hi Andrea...

Any sample codes i can refer with, on the concern above?

much appreciated..

Thanks