DST wrote:Depends on if you send it in USD or that playmoney all the other countries use.
x+=direct*walk*speed;
x+=(1>(max(beeant,teh.suck)-min(beeant,teh.suck)))*direct*walk*speed;
kickDST();
#define notif if // Of course you will be using if through another textual replacement to it
#define notif(x) if(x) // Of course you will be using if through another textual replacement to it
(expression) ? (iftrue) : (else); // Although it is not very recommended as it semantically cannot take advantage of scopes. Commas though. .. and it is not even meant to be used as a conditional statement but a syntax condition
for( ; condition && mutex;) { expression }
while(condition && mutex) { expression }
do { expression } while(condition && mutex);
for( ; condition;) { expression; break; }
while(condition) { expression; break; }
do { expression; break; } while(condition);
switch(lvalue)
{
case rvalue : // must be an integral literal
{ }
}
int hpControl(int hpNOW, int hpMAX)
{
return max(0, min(hpNOW, hpMAX) ;
}
mariamedina wrote:
- Code: Select all
int hpControl(int hpNOW, int hpMAX)
{
return max(0, min(hpNOW, hpMAX) ;
}
This code will help you.
schnellboot wrote:mariamedina wrote:
- Code: Select all
int hpControl(int hpNOW, int hpMAX)
{
return max(0, min(hpNOW, hpMAX) ;
}
This code will help you.
find the error
return max(0,min(hpNOW,hpMAX));
Bee-Ant wrote:schnellboot wrote:mariamedina wrote:
- Code: Select all
int hpControl(int hpNOW, int hpMAX)
{
return max(0, min(hpNOW, hpMAX) ;
}
This code will help you.
find the error
It should be:
- Code: Select all
return max(0,min(hpNOW,hpMAX));
Users browsing this forum: No registered users and 1 guest