Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

random problem

$
0
0
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.8);
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?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>