28.02.2015, 20:40
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.
Problems?
Ive received 3 warnings
These are the lines that are making a problem.
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;
}
Ive received 3 warnings
pawn Код:
warning 213: tag mismatch
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"}