enum hInfo
{
Float:hEnterX,
Float:hEnterY,
Float:hEnterZ,
Float:hExitX,
Float:hExitY,
Float:hExitZ,
hInsideInt,
hInsideVir,
hOutsideVir,
hOutsideInt,
hOwned,
hOwner[24],
hTitle[15],
hPrice,
hPickup,
hIconID,
hCP,
bool:hCantRob,
Text3D:hTextLabel,
h_Vehicle_Save,
h_Vehicle_ID,
Float:h_Vehicle_x,
Float:h_Vehicle_y,
Float:h_Vehicle_z,
Float:h_Vehicle_a,
h_Vehiclecol1,
h_Vehiclecol2
};
new HouseInfo[MAX_HOUSES][hInfo];
{ //HERE'S THE START OF ERROR, what should i put here?
{2165.982177, -1671.144165, 15.073156, 2, CP_TYPE_ENTRY, 0, 0, 10.0 ,318.637695, 1117.218994, 1083.882812, 359.494110, 5,239 ,2167.530273, -1672.917480, 15.081041, 224.837097, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Crack House" ,"Idlewood"},
{-2490.996337, -38.926345, 25.617187, 2, CP_TYPE_ENTRY, 0, 0, 5.0 ,-204.367492, -6.879445, 1002.273437, 355.418975, 17,240 ,-2493.817138, -38.853084, 25.765625, 89.545532, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Tattoo Shop" ,"Hashbury"},
{2094.711181, 2122.864746, 10.820312, 2, CP_TYPE_ENTRY, 0, 0, 5.0 ,-204.345581, -42.227642, 1002.273437, 358.322052, 3,241 ,2094.809570, 2119.298095, 10.820312, 181.938064, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Tattoo Shop" ,"Redsands East"},
{2068.617675, -1779.897583, 13.559608, 2, CP_TYPE_ENTRY, 0, 0, 5.0 ,-204.229339, -25.251636, 1002.273437, 356.041564, 16,242 ,2071.894287, -1779.827270, 13.557554, 265.782043, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Tattoo Shop" ,"Idlewood"},
{2070.626953, -1793.858764, 13.546875, 2, CP_TYPE_ENTRY, 0, 7, 5.0 ,411.700592, -20.429958, 1001.804687, 1.543449, 2,243 ,2073.826171, -1793.809692, 13.546875, 266.868041, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Barber Shop" ,"Idlewood"},
{2724.435302, -2026.547485, 13.554687, 2, CP_TYPE_ENTRY, 0, 7, 5.0 ,411.700592, -20.429958, 1001.804687, 1.543449, 2,244 ,2720.944580, -2026.668945, 13.547199, 92.545738, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Barber Shop" ,"Player Del Seville"},
{-2571.311279, 246.802062, 10.453931, 2, CP_TYPE_ENTRY, 0, 7, 5.0 ,411.700592, -20.429958, 1001.804687, 1.543449, 2,245 ,-2568.690429, 244.117355, 10.295303, 224.522842, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Barber Shop" ,"Queens"},
{1456.534423, -1137.555297, 23.948390, 2, CP_TYPE_ENTRY, 0, 45, 5.0 ,161.450302, -94.101325, 1001.804687, 357.839141, 18,246 ,1458.437133, -1139.804077, 24.073740, 221.162368, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Zip" ,"Downtown Los Santos"},
{2571.958984, 1904.901000, 11.023437, 2, CP_TYPE_ENTRY, 0, 45, 5.0 ,161.450302, -94.101325, 1001.804687, 357.839141, 18,247 ,2572.111572, 1900.848754, 11.023437, 181.611450, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Zip" ,"LV Shopping Centre"},
{-1882.260375, 866.507141, 35.171875, 2, CP_TYPE_ENTRY, 0, 45, 5.0 ,161.450302, -94.101325, 1001.804687, 357.839141, 18,248 ,-1885.010620, 863.506713, 35.171875, 139.886627, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Zip" ,"Downtown San Fierro"},
{454.236389, -1478.075561, 30.816919, 2, CP_TYPE_ENTRY, 0, 45, 5.0 ,204.475357, -166.455520, 1000.523437, 3.518918, 14,249 ,451.086914, -1479.158081, 30.810012, 106.395690, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Didier Sachs" ,"Rodeo"},
{461.259002, -1500.874023, 31.059282, 2, CP_TYPE_ENTRY, 0, 2, 5.0 ,224.793151, -8.318072, 1002.210937, 91.903160, 5,250 ,458.016662, -1501.706909, 31.036149, 103.234809, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Victim" ,"Rodeo"},
{-1694.506835, 951.846923, 24.890625, 2, CP_TYPE_ENTRY, 0, 45, 5.0 ,224.793151, -8.318072, 1002.210937, 91.903160, 5,251 ,-1696.776000, 949.280151, 24.890625, 144.346572, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Victim" ,"Financial"},
//....and 1000 more locations
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1148) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1150) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1173) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1182) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1213) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1222) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1229) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1232) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1237) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1240) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1243) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1245) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1253) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1257) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1277) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1309) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1318) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1334) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1338) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1362) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1367) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1375) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1379) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1383) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1385) : error 055: start of function body without function header
D:\Program Files\Samp SERVER 2018\samp037_svr_R2-1-1_win32\gamemodes\CnR.pwn(1460) : error 055: start of function body without function header
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
new HouseInfo[MAX_HOUSES][hInfo]; { //HERE'S THE START OF ERROR, what should i put here?
new HouseInfo[MAX_HOUSES][hInfo];
new HouseInfo[MAX_HOUSES][hInfo] =
{
{2165.982177, -1671.144165, 15.073156, 2, CP_TYPE_ENTRY, 0, 0, 10.0 ,318.637695, 1117.218994, 1083.882812, 359.494110, 5,239 ,2167.530273, -1672.917480, 15.081041, 224.837097, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Crack House" ,"Idlewood"},
{2165.982177, -1671.144165, 15.073156, 2, CP_TYPE_ENTRY, 0, 0, 10.0 ,318.637695, 1117.218994, 1083.882812, 359.494110, 5,239 ,2167.530273, -1672.917480, 15.081041, 224.837097, 0,0, 0.0,0.0,0.0,0.0, 0,0, "Crack House" ,"Idlewood"},
//... and other lines
};
In this line:
Код:
new HouseInfo[MAX_HOUSES][hInfo]; PHP код:
|
new Float:MoneyBagPos[3], MoneyBagActive = 0, MoneyBagLocation[50], MoneyBagPickup;//, MoneyBagTimer[2];
//Hours, Minutes, Seconds, Milliseconds
#define MoneyBagDelay(%1,%2,%3,%4) (%1*3600000)+(%2*60000)+(%3*1000)+%4
//20 = 200,000 minimum 30 = 200,000 -> 500,000
#define MoneyBagCash ((random(30)+20)*10000)
//I want to put it every day in 16:00, what should i set here? How to count? Should i use 24min (1 game day)*60sec gives me 1440seconds
#define MB_DELAY MoneyBagDelay(0, 500, 0, 0) //should i put 0,1440,0,0