26.06.2012, 15:06
Hey,
I made 11 gang zones, but when I enter Zone6 my game crashes and that happend to other players aswel.
What is the problem?
I made 11 gang zones, but when I enter Zone6 my game crashes and that happend to other players aswel.
What is the problem?
pawn Код:
new Zone1;
new Zone2;
new Zone3;
new Zone4;
new Zone5;
new Zone6;
new Zone7;
new Zone8;
new Zone9;
new Zone10;
new Zone11;
public OnGameModeInit()
{
Zone1 = GangZoneCreate(-896.484375, 1646.484375, -732.421875, 1476.5625);
Zone2 = GangZoneCreate(-1582.03125, 2742.1875, -1412.109375, 2537.109375);
Zone3 = GangZoneCreate(1142.578125, 451.171875, 1458.984375, 123.046875);
Zone4 = GangZoneCreate(574.21875, -427.734375, 755.859375, -621.09375);
Zone5 = GangZoneCreate(-369.140625, 2830.078125, -111.328125, 2619.140625);
Zone6 = GangZoneCreate(-2630.859375, 2507.8125, -2244.140625, 2238.28125);
Zone7 = GangZoneCreate(2138.671875, 222.65625, 2589.84375, -134.765625);
Zone8 = GangZoneCreate(-369.140625, 1318.359375, 105.46875, 984.375);
Zone9 = GangZoneCreate(1828.125, 820.3125, 2712.890625, 603.515625);
Zone10 = GangZoneCreate(58.59375, 52.734375, 398.4375, -310.546875);
Zone11 = GangZoneCreate(-111.328125, 2214.84375, 498.046875, 1611.328125);
return 1;
}
public OnPlayerSpawn(playerid)
{
GangZoneShowForAll(Zone1, 0xFF8000B4);
GangZoneShowForAll(Zone2, 0xFCF11EB4);
GangZoneShowForAll(Zone3, 0x9AFE2EB4);
GangZoneShowForAll(Zone4, 0x5858FAB4);
GangZoneShowForAll(Zone5, 0xCC2EFAB4);
GangZoneShowForAll(Zone6, 0x01DFA5B4);
GangZoneShowForAll(Zone7, 0x8A0868B4);
GangZoneShowForAll(Zone8, 0x0B610BB4);
GangZoneShowForAll(Zone9, 0x424242B4);
GangZoneShowForAll(Zone10, 0x0B614BB4);
GangZoneShowForAll(Zone11, 0xDF0101B4);
return 1;
}