SA-MP Forums Archive
Error 055 in my prison_system pawno - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error 055 in my prison_system pawno (/showthread.php?tid=657113)



Error 055 in my prison_system pawno - Ramzi101 - 01.08.2018

Error: ./includes/prison_system.pwn(449) : error 055: start of function body without function header

PHP код:
// Streamer.pwn
forward LoadStreamerDynamicObjects();
{
    
DocCellRoomDoors[0] = CreateDynamicObject(1495568.369811453.99555999.47168,   0.000000.00000270.00000); // cell block 1
    
DocCellRoomDoors[1] = CreateDynamicObject(1495572.84981453.99555999.47168,   0.000000.00000270.00000); // cell block 2
    
DocCellRoomDoors[2] = CreateDynamicObject(1495585.772891448.879155999.45947,   0.000000.0000090.00000); // showers
    
DocCellRoomDoors[3] = CreateDynamicObject(1495553.981201466.114265999.44971,   0.000000.000000.00000); // cafe 1
    
DocCellRoomDoors[4] = CreateDynamicObject(1495553.981691474.472055999.48877,   0.000000.000000.00000); // cafe 2
    
DocCellRoomDoors[5] = CreateDynamicObject(1495583.519781455.052125999.47266,   0.000000.000000.00000); // laundry
    
DocCellRoomDoors[6] = CreateDynamicObject(1495531.665891428.0064710999.45703,   0.000000.000000.00000); // isolation
    
DocCellRoomDoors[7] = CreateDynamicObject(1495566.540531462.307746003.41699,   0.000000.000000.00000); // control panel
    
DocCellRoomDoors[8] = CreateDynamicObject(1569572.98661447.59755999.4727,   0.000000.0000090.00000); // small control room
    
DocCellRoomDoors[9] = CreateDynamicObject(1569597.014771452.437745999.44873,   0.000000.0000090.00000); // processing 1
    
DocCellRoomDoors[10] = CreateDynamicObject(1569599.120001451.454225999.47754,   0.000000.000000.00000); // processing 2
    
DocCellRoomDoors[11] = CreateDynamicObject(1569589.218201448.875375999.46826,   0.000000.0000090.00000); // processing 3
    
DocCellRoomDoors[12] = CreateDynamicObject(1569579.578981463.633795999.46143,   0.000000.0000090.00000); // classroom
    
DocCellRoomDoors[13] = CreateDynamicObject(1569572.993771468.639405999.43994,   0.000000.0000090.00000); // closet
    
DocCellRoomDoors[14] = CreateDynamicObject(1569572.984191434.652955999.52295,   0.000000.0000090.00000); // medward
    
DocCellRoomDoors[15] = CreateDynamicObject(1569575.507511461.820195999.47168,   0.000000.000000.00000); // hallway
    
DocCellRoomDoors[16] = CreateDynamicObject(1495526.921391414.6328110999.45703,   0.000000.00000270.00000); // lobby 1
    
DocCellRoomDoors[17] = CreateDynamicObject(1495529.961431414.6328110999.45703,   0.000000.00000270.00000); // lobby 2
    
DocCellRoomDoors[18] = CreateDynamicObject(1495542.20691417.8668210999.45703,   0.000000.0000090.00000); // visitation
    
DocCellsFloor1[0] = CreateDynamicObject(19302567.210691445.881716000.74609,   0.000000.000000.00000); // cell 1 - floor 1
    
DocCellsFloor1[1] = CreateDynamicObject(19302563.585391445.881716000.74609,   0.000000.000000.00000); // cell 2 - floor 1
    
DocCellsFloor1[2] = CreateDynamicObject(19302559.877381445.881716000.74609,   0.000000.000000.00000); // cell 3 - floor 1
    
DocCellsFloor1[3] = CreateDynamicObject(19302556.218321445.881716000.74609,   0.000000.000000.00000); // cell 4 - floor 1
    
DocCellsFloor1[4] = CreateDynamicObject(19302552.551211445.881716000.74609,   0.000000.000000.00000); // cell 5 - floor 1
    
DocCellsFloor1[5] = CreateDynamicObject(19302548.863531445.881716000.74609,   0.000000.000000.00000); // cell 6 - floor 1
    
DocCellsFloor1[6] = CreateDynamicObject(19302545.210391445.863166000.74609,   0.000000.000000.00000); // cell 7 - floor 1
    
DocCellsFloor1[7] = CreateDynamicObject(19302542.568421446.811526000.74609,   0.000000.00000270.00000); // cell 8 - floor 1
    
DocCellsFloor1[8] = CreateDynamicObject(19302542.543211450.469366000.74609,   0.000000.00000270.00000); // cell 9 - floor 1
    
DocCellsFloor1[9] = CreateDynamicObject(19302542.554321454.133546000.74609,   0.000000.00000270.00000); // cell 10 - floor 1
    
DocCellsFloor1[10] = CreateDynamicObject(19302542.554321457.796266000.74609,   0.000000.00000270.00000); // cell 11 - floor 1
    
DocCellsFloor1[11] = CreateDynamicObject(19302543.486571462.268196000.74609,   0.000000.00000180.00000); // cell 12 - floor 1
    
DocCellsFloor1[12] = CreateDynamicObject(19302547.161621462.268196000.74609,   0.000000.00000180.00000); // cell 13 - floor 1
    
DocCellsFloor1[13] = CreateDynamicObject(19302550.842771462.288216000.74609,   0.000000.00000180.00000); // cell 14 - floor 1
    
DocCellsFloor1[14] = CreateDynamicObject(19302556.916321462.268196000.74609,   0.000000.00000180.00000); // cell 15 - floor 1
    
DocCellsFloor1[15] =  CreateDynamicObject(19302560.606201462.268196000.74609,   0.000000.00000180.00000);  // cell 16 - floor 1
    
DocCellsFloor2[0] = CreateDynamicObject(19302567.230711445.881716004.63135,   0.000000.000000.00000); // cell 1 - floor 2
    
DocCellsFloor2[1] = CreateDynamicObject(19302563.585391445.881716004.63135,   0.000000.000000.00000); // cell 1 - floor 2
    
DocCellsFloor2[2] = CreateDynamicObject(19302559.877381445.881716004.63135,   0.000000.000000.00000);  // cell 2 - floor 2
    
DocCellsFloor2[3] = CreateDynamicObject(19302556.218321445.881716004.63135,   0.000000.000000.00000);  // cell 3 - floor 2
    
DocCellsFloor2[4] = CreateDynamicObject(19302552.551211445.881716004.63135,   0.000000.000000.00000);  // cell 4 - floor 2
    
DocCellsFloor2[5] = CreateDynamicObject(19302548.863531445.881716004.63135,   0.000000.000000.00000);  // cell 5 - floor 2
    
DocCellsFloor2[6] = CreateDynamicObject(19302545.210391445.863166004.63135,   0.000000.000000.00000);  // cell 6 - floor 2
    
DocCellsFloor2[7] = CreateDynamicObject(19302542.568421446.811526004.63135,   0.000000.00000270.00000);  // cell 7 - floor 2
    
DocCellsFloor2[8] = CreateDynamicObject(19302542.543211450.469366004.63135,   0.000000.00000270.00000);  // cell 8 - floor 2
    
DocCellsFloor2[9] = CreateDynamicObject(19302542.554321454.133546004.63135,   0.000000.00000270.00000);  // cell 9 - floor 2
    
DocCellsFloor2[10] = CreateDynamicObject(19302542.554321457.796266004.63135,   0.000000.00000270.00000);  // cell 10 - floor 2
    
DocCellsFloor2[11] = CreateDynamicObject(19302543.486571462.268196004.63135,   0.000000.00000180.00000);  // cell 11 - floor 2
    
DocCellsFloor2[12] = CreateDynamicObject(19302547.161621462.268196004.63135,   0.000000.00000180.00000);  // cell 12 - floor 2
    
DocCellsFloor2[13] = CreateDynamicObject(19302550.842771462.288216004.63135,   0.000000.00000180.00000);  // cell 13 - floor 2
    
DocCellsFloor2[14] = CreateDynamicObject(19302556.916321462.268196004.63135,   0.000000.00000180.00000);  // cell 14 - floor 2
    // doc buttons (includes/streamer/buttons.pwn)
    
DocCPButton[0] = CreateButton(562.111821466.079716004.944340.00000);
    
DocCPButton[1] = CreateButton(568.398071448.592906001.0625090.00000);
    
DocButton[0] = CreateButton(568.432801454.262336000.8276490.00000); // cell block 1
    
DocButton[1] = CreateButton(572.892821454.262336000.8276490.00000); // cell block 2
    
DocButton[2] = CreateButton(585.799991450.631476000.8276490.00000); // showers
    
DocButton[3] = CreateButton(555.690191466.075076000.827640.00000); // cafe
    
DocButton[4] = CreateButton(555.690191474.575076000.82764180.00000); // cafe
    
DocButton[5] = CreateButton(585.504271455.001596000.827640.00000); // laundry
    
DocButton[6] = CreateButton(533.413151427.9241911000.798830.00000); // isolation
    
DocButton[7] = CreateButton(566.268621462.260506004.944340.00000); // control room
    
DocButton[8] = CreateButton(573.032781449.442266000.8276490.00000); //small control room
    
DocButton[9] = CreateButton(596.949581452.188966000.82764270.00000); // processing 1
    
DocButton[10] = CreateButton(598.888611451.523196000.82764180.00000); // processing 2
    
DocButton[11] = CreateButton(589.255801450.580446000.8276490.00000); // processing 3
    
DocButton[12] = CreateButton(579.503721463.320566000.82764270.00000); // classroom
    
DocButton[13] = CreateButton(572.925111470.461066000.82764270.00000); // janitors
    
DocButton[14] = CreateButton(572.912781436.462286000.82764270.00000); // med ward
    
DocButton[15] = CreateButton(577.348391461.793336000.827640.00000); // hallway
    
DocButton[16] = CreateButton(526.890381414.8336211000.79883270.00000); // lobby1
    
DocButton[17] = CreateButton(529.953191414.8345911000.79883270.00000); // lobby 2
    
DocButton[18] = CreateButton(542.252501419.6938511000.7988390.00000); //visitation
    
return 1;




Re: Error 055 in my prison_system pawno - NaS - 01.08.2018

Код:
forward LoadStreamerDynamicObjects();
should be

Код:
LoadStreamerDynamicObjects()
forward is only used to forward public functions. This function does not need to be public thus not forwarded.
Also function headers are written without semicolon.