Loop?

Hey,

I’m currently planning on developing something like this:

Whenever you post something in my forum, the user should receive a specific amount of specific points. However, a loop can’t run if I’d say that whenever the number of points is >= 0. Does anyone have an solution on how I can run a loop, if i need to, for adding those points only once?

i don’t understand your mean.if you can explain more we can help you ~~~

Do you have some code you can show? I’m not exactly clear on what you’re asking. Can you elaborate on what exactly is not working and what you actually want it to do.


if ($Points >= 0)
   {
   //Do something
   }
else
   {
   //Add points
   //for ($I = 0 etc
   }

That what you’re looking for?