01.12.2013, 08:36
Код:
// This is a comment #define FILTERSCRIPT #include <a_samp> #include <streamer> #include <zcmd> new gate1, gate2, gate3, gate4; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" house"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" house Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { //NiceHouseAtArea51 CreateDynamicObject(2755,202.6999969,1858.0000000,13.8999996,0.0000000,0.0000000,0.0000000); //object(dojo_wall) (1) CreateDynamicObject(2755,206.0000000,1858.0000000,13.8999996,0.0000000,0.0000000,0.0000000); //object(dojo_wall) (2) CreateDynamicObject(2298,202.8000031,1870.8000488,12.1000004,0.0000000,0.0000000,0.0000000); //object(swank_bed_7) (1) CreateDynamicObject(2297,201.3000031,1864.1999512,12.1000004,0.0000000,0.0000000,45.0000000); //object(tv_unit_2) (1) CreateDynamicObject(2628,225.3000031,1864.9000244,12.1000004,0.0000000,0.0000000,270.0000000); //object(gym_bench2) (1) CreateDynamicObject(2630,225.3999939,1863.3000488,12.1000004,0.0000000,0.0000000,270.0000000); //object(gym_bike) (1) CreateDynamicObject(2627,225.1999969,1861.6999512,12.1000004,0.0000000,0.0000000,270.0000000); //object(gym_treadmill) (1) CreateDynamicObject(2824,205.5000000,1874.4000244,12.6000004,0.0000000,0.0000000,0.0000000); //object(gb_novels02) (1) CreateDynamicObject(2828,202.8000031,1874.5000000,12.6000004,0.0000000,0.0000000,180.0000000); //object(gb_ornament02) (1) CreateDynamicObject(1723,205.1000061,1865.9000244,12.1000004,0.0000000,0.0000000,270.0000000); //object(mrk_seating1) (1) CreateDynamicObject(2315,203.3000031,1864.1999512,12.1000004,0.0000000,0.0000000,90.0000000); //object(cj_tv_table4) (1) CreateDynamicObject(2245,203.3000031,1864.9000244,12.8500004,0.0000000,0.0000000,0.0000000); //object(plant_pot_11) (1) CreateDynamicObject(2928,226.2500000,1859.2500000,14.5000000,0.0000000,0.0000000,90.0000000); //object(a51_intdoor) (2) CreateDynamicObject(9126,213.8999939,1872.6999512,23.7999992,0.0000000,0.0000000,0.0000000); //object(cmtneon01) (1) CreateDynamicObject(1597,207.8000031,1895.5000000,18.0000000,12.0000000,0.0000000,9.0000000); //object(cntrlrsac1) (1) CreateDynamicObject(1597,209.3000031,1885.9000244,15.8999996,11.9970703,0.0000000,8.9978027); //object(cntrlrsac1) (2) CreateDynamicObject(1597,219.5000000,1896.4000244,18.2000008,11.9970703,0.0000000,352.5000000); //object(cntrlrsac1) (3) CreateDynamicObject(1597,218.1999969,1886.6999512,16.1000004,11.9915771,0.0000000,352.5000000); //object(cntrlrsac1) (4) CreateDynamicObject(1215,208.6999969,1890.5000000,14.8999996,12.5000000,0.0000000,0.0000000); //object(bollardlight) (1) CreateDynamicObject(1215,219.0000000,1891.3000488,15.1999998,12.4969482,0.0000000,0.0000000); //object(bollardlight) (2) CreateDynamicObject(3472,207.6999969,1885.8000488,16.6000004,0.0000000,0.0000000,0.0000000); //object(circuslampost03) (1) CreateDynamicObject(3472,220.0000000,1885.8000488,16.6000004,0.0000000,0.0000000,0.0000000); //object(circuslampost03) (2) CreateDynamicObject(15036,203.3999939,1859.5999756,13.3000002,0.0000000,0.0000000,0.0000000); //object(kit_cab_washin_sv) (1) CreateDynamicObject(2571,220.8999939,1869.0999756,12.1000004,0.0000000,0.0000000,0.0000000); //object(hotel_single_1) (1) CreateDynamicObject(2198,207.0000000,1874.0999756,12.1000004,0.0000000,0.0000000,0.0000000); //object(med_office2_desk_3) (1) CreateDynamicObject(1671,207.8000031,1873.0999756,12.6000004,0.0000000,0.0000000,225.0000000); //object(swivelchair_a) (1) CreateDynamicObject(1827,211.3999939,1858.0000000,12.1000004,0.0000000,0.0000000,0.0000000); //object(man_sdr_tables) (1) CreateDynamicObject(1704,213.1999969,1858.4000244,12.1000004,0.0000000,0.0000000,270.0000000); //object(kb_chair03) (1) CreateDynamicObject(1704,209.6999969,1857.5999756,12.1000004,0.0000000,0.0000000,90.0000000); //object(kb_chair03) (2) CreateDynamicObject(2245,211.3999939,1858.0000000,12.8000002,0.0000000,0.0000000,0.0000000); //object(plant_pot_11) (2) CreateDynamicObject(1723,249.1000061,1858.0000000,13.1000004,0.0000000,0.0000000,180.0000000); //object(mrk_seating1) (2) CreateDynamicObject(1723,246.1000061,1858.0000000,13.1000004,0.0000000,0.0000000,179.9945068); //object(mrk_seating1) (3) CreateDynamicObject(1723,243.1000061,1858.0000000,13.1000004,0.0000000,0.0000000,179.9945068); //object(mrk_seating1) (4) CreateDynamicObject(1736,204.1000061,1874.6999512,15.0000000,0.0000000,0.0000000,0.0000000); //object(cj_stags_head) (1) CreateDynamicObject(1808,201.3000031,1874.5000000,12.1000004,0.0000000,0.0000000,0.0000000); //object(cj_watercooler2) (1) CreateDynamicObject(2100,202.1000061,1862.5999756,12.1000004,0.0000000,0.0000000,135.0000000); //object(med_hi_fi_2) (1) CreateDynamicObject(3749,213.6999969,1872.8000488,22.5000000,0.0000000,0.0000000,0.0000000); //object(clubgate01_lax) (1) CreateDynamicObject(3884,209.5000000,1874.5000000,16.2500000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (1) CreateDynamicObject(3884,218.3000031,1874.1999512,16.2500000,0.0000000,0.0000000,0.0000000); //object(samsite_sfxrf) (2) CreateDynamicObject(2985,210.3000031,1881.1999512,12.1999998,12.0000000,0.0000000,0.0000000); //object(minigun_base) (1) CreateDynamicObject(2985,218.0000000,1881.9000244,12.3999996,348.0029297,0.0000000,180.0000000); //object(minigun_base) (2) //Gates gate1 = CreateDynamicObject(980,214.0996094,1875.6992188,13.0000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (1) gate2 = CreateDynamicObject(2929,211.8000031,1875.3000488,13.8999996,0.0000000,0.0000000,0.0000000); //object(a51_blastdoorl) (2) gate3 = CreateDynamicObject(2928,226.6000061,1872.4000244,13.7500000,0.0000000,0.0000000,90.0000000); //object(a51_intdoor) (1) gate4 = CreateDynamicObject(2927,215.8999939,1875.3000488,13.8999996,0.0000000,0.0000000,0.0000000); //object(a51_blastdoorr) (1) return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { CMD:open1(playerid,params[]) { MoveDynamicObject(gate1, 214.0996094,1875.6992188,9.2500000,1); return 1; } CMD:close1(playerid,params[]) { MoveDynamicObject(gate1, 214.0996094,1875.6992188,13.0000000,1); return 1; } CMD:open2(playerid,params[]) { MoveDynamicObject(gate2, 211.7998047,1875.2998047,10.3000002,1); return 1; } CMD:close2(playerid,params[]) { MoveDynamicObject(gate2, 211.8000031,1875.3000488,13.8999996,1); return 1; } CMD:open3(playerid,params[]) { MoveDynamicObject(gate3, 226.5996094,1872.3994141,11.2500000,1); return 1; } CMD:close3(playerid,params[]) { MoveDynamicObject(gate3, 226.6000061,1872.4000244,13.7500000,1); return 1; } CMD:open4(playerid,params[]) { MoveDynamicObject(gate4, 215.8994141,1875.2998047,10.3000002,1); return 1; } CMD:close4(playerid,params[]) { MoveDynamicObject(gate4, 215.8999939,1875.3000488,13.8999996,1); return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
(139) : error 029: invalid expression, assumed zero
(139) : error 017: undefined symbol "cmd_open1"
(139) : error 029: invalid expression, assumed zero
(139) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.