random problem
#1

Hi! I need heep

I write this script:
Quote:

forward FireLocLV();
public FireLocLV()
{

CreateFire(693.69, 1966.36, 5.53);
CreateFire(698.24, 1949.53, 5.53);
CreateFire(715.44, 1971.25, 9.56);
CreateFire(684.42, 1970.22, 9.29);
CreateFire(685.54, 1967.23, 5.53);

}

forward FireLocBandits();
public FireLocBandits()
{

CreateFire(1485.84, 2232.04, 11.;
CreateFire(1488.16, 2208.43, 11.23);
CreateFire(1481.18, 2149.20, 11.02);
CreateFire(1483.65, 2244.61, 11.02);
CreateFire(1492.48, 2134.33, 10.82);

}

new RandomFireLoc[][] =
{
"FireLocLV();",
"FireLocBandits();"


};


forward StartFire();
public StartFire()
{
new randFire = random(sizeof(RandomFireLoc));
RandomFireLoc[randFire];

}

// Lets the player choose another class
COMMAND:rand(playerid, params[])
{

// Check if the player has logged in
if(gLogged[playerid] == 1)
{
//FireLocLV();
StartFire();
}

// Let the server know that this was a valid command
return 1;
}

Results: (1197) : warning 215: expression has no effect
1197 is: RandomFireLoc[randFire];

I want to
Quote:

public StartFire()

be

FireLocLV(); or FireLocBandits(); random

can someone help me?
Reply
#2

You need to pass that to CallLocalFunction. However;
Quote:
Originally Posted by Nathaniel Borenstein
It should be noted that no ethically-trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
You need to pass that to CallLocalFunction. However;
what do you mean? I did not understand.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)