Problem with random spawns
#1

Okay so Im making a simple system that will print out where some package spawned.

What it should do? Well it should spawn it at random coords and SCM to all players and tell them where it is.

pawn Код:
new Float:RandomPackageSpawn[][] =
{
    {1517.7394,11.8652,24.1406, "Montgomery Hangar"},
    {2208.4785,-2295.6245,14.4917, "Los Santos Ocean Docks factory"},
    {2793.0776,-2417.6951,13.3594, "Los Santos military docks"}
};

public SpawnMaterialPackage()
{
    new string[128];
    new rand = random(sizeof(RandomPackageSpawn));
    CreatePickup(1242,1,RandomPackageSpawn[rand][0],RandomPackageSpawn[rand][1],RandomPackageSpawn[rand][2],0);
    format(string,sizeof(string),"Package spawned at %s",RandomPackageSpawn[rand][3]);
    SendClientMessageToAll(COLOR_NOTIFICATION,string);
    return true;
}
Problems?

Ive received 3 warnings
pawn Код:
warning 213: tag mismatch
These are the lines that are making a problem.
pawn Код:
{1517.7394,11.8652,24.1406, "Montgomery Hangar"},
    {2208.4785,-2295.6245,14.4917, "Los Santos Ocean Docks factory"},
    {2793.0776,-2417.6951,13.3594, "Los Santos military docks"}
Reply


Messages In This Thread
Problem with random spawns - by Twinklies - 28.02.2015, 20:40
Re: Problem with random spawns - by CalvinC - 28.02.2015, 20:53
Re: Problem with random spawns - by Twinklies - 28.02.2015, 20:55
Re : Problem with random spawns - by Etolas - 28.02.2015, 20:59
Re: Problem with random spawns - by Jefff - 28.02.2015, 21:01
Re: Problem with random spawns - by Twinklies - 28.02.2015, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)