can some one tell me what is the working of these pickup functions....and in how many ways i can use them....
Pickup.StreamedToPlayer
Pickup.Alpha
Pickup.Automatic
Pickup.StreamedToPlayer
Pickup.Alpha
Pickup.Automatic
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: S.L.C on Jul 27, 2015, 08:22 AMAlso your case 1 is invalid here because Squirrel and many other programming languages don't have the '=+' operator. Here we have '+='.sry i dont know about that but the example that i gave u was in java and it works fine....case 1 is valid in java u can check it.....and if u say that is in valid then it means pre increament op. doesn't work in squirrel....?
import java.util.*;
public class numbers
{
public static void main(String[]args)
{
Scanner input = new Scanner(System.in);
System.out.println("Enter a number");
int x = input.nextInt();
int sum=0;
for(int i=0;i<=70;i++)
{
int a = x%10;
int b = x/10;
//sum=+ a; //case:1
sum+=a; //case: 2
x=b;
}
System.out.println(sum);
}
}
function healallp( )
{
Message("** All Players in server have been healed after 1 hour.");
if( GetPlayers() > 0 )
{
for(local i=0; i<GetPlayers(); i++ )
{
local player = FindPlayer( i );
if ( ( status[ player.ID ].IsReg == true ) && ( status[ player.ID ].IsLogged == true) )
{
PrivMessage( player, "You have been healed.");
player.Health = 100;
}
}
}
}
NewTimer( "healallp", 3600000, 0 );