06.04.2010, 12:54
code pawno:
what is the problem
eror:
Код:
#include <a_samp> #include <a_objects> #include <a_players> new obj; #define COLOR_GREEN 0x00ff00ff #define COLOR_SKYBLUE 0x00ffffff #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print("Alien VS Army"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { KillTimer(timer); return 1; } #else main() { print("\n----------------------------------"); print("Alien VS Army"); print("----------------------------------\n"); } #endif public OnGameModeInit() { ShowPlayerMarkers(0); SetGameModeText("Alien VS Army"); AddPlayerClass(287,207.0440,1861.4463,13.1406,276.6285,31,900,24,500,44,1); // army AddPlayerClass(287,207.0440,1861.4463,13.1406,276.6285,31,900,24,500,44,1); // army AddPlayerClass(154,268.4411,1883.5461,-30.0938,8.7495,4,1,7,1,0,0); // Alien //Objecten CreateObject(3037, 215.16996765137, 1874.9272460938, 14.345463752747, 0, 0, 90); CreateObject(2945, 241.7296295166, 1859.8583984375, 18.261299133301, 0, 0, 120); CreateObject(2780, 244.78253173828, 1861.9738769531, 16.920267105103, 0, 0, 0); CreateObject(3574, 267.32281494141, 1877.3876953125, 19.339748382568, 0, 0, 0); CreateObject(3574, 263.93222045898, 1885.4995117188, 19.332317352295, 0, 0, 0); CreateObject(3037, 248.44972229004, 1842.0743408203, 9.956316947937, 0, 0, 90); CreateObject(3037, 275.01663208008, 1814.2829589844, 2.206316947937, 0, 0, 0); CreateObject(3037, 280.697265625, 1821.9384765625, 11.356284141541, 0, 0, 0); CreateObject(3037, 296.32525634766, 1842.4908447266, 8.9373207092285, 0, 0, 90); CreateObject(3037, 298.09140014648, 1843.5103759766, 8.9325799942017, 0, 0, 90); CreateObject(7943, 290.68865966797, 1870.6130371094, 12.546611785889, 0, 0, 0); //lichten CreateObject(3526, 237.1427154541, 1873.4410400391, 10.529355049133, 0, 0, 0); CreateObject(3526, 237.04219055176, 1871.234375, 10.529355049133, 0, 0, 0); CreateObject(3526, 232.82929992676, 1873.462890625, 10.529355049133, 0, 0, 0); CreateObject(3526, 232.76043701172, 1871.2619628906, 10.529355049133, 0, 0, 0); CreateObject(3526, 273.62991333008, 1819.0736083984, 0.076230391860008, 0, 0, 0); CreateObject(3526, 273.90548706055, 1813.9176025391, 0.076230391860008, 0, 0, 0); CreateObject(3526, 257.83465576172, 1813.8531494141, 0.076230391860008, 0, 0, 0); CreateObject(3526, 257.62460327148, 1819.0411376953, 0.076230391860008, 0, 0, 0); CreateObject(3526, 292.83026123047, 1822.4681396484, 6.8523621559143, 0, 0, 270); CreateObject(3526, 287.02871704102, 1822.4183349609, 6.7949805259705, 0, 0, 270); CreateObject(3526, 281.88751220703, 1822.4906005859, 6.8523621559143, 0, 0, 270); CreateObject(3526, 299.91586303711, 1835.5557861328, 6.8024497032166, 0, 0, 0); CreateObject(3526, 299.8610534668, 1830.2518310547, 6.7949805259705, 0, 0, 0); CreateObject(3526, 295.70474243164, 1835.447265625, 6.8024497032166, 0, 0, 180); CreateObject(3526, 295.5358581543, 1830.5113525391, 6.7949805259705, 0, 0, 179.99450683594); CreateObject(3526, 279.43569946289, 1835.6457519531, 6.7949805259705, 0, 0, 0); CreateObject(3526, 275.66598510742, 1835.3592529297, 6.7949805259705, 0, 0, 180); CreateObject(3526, 279.39431762695, 1831.2705078125, 6.7949805259705, 0, 0, 0); CreateObject(3526, 275.4821472168, 1830.7924804688, 6.7949805259705, 0, 0, 179.99450683594); CreateObject(3526, 289.36602783203, 1841.6154785156, 6.7949805259705, 0, 0, 90); CreateObject(3526, 282.39212036133, 1841.6090087891, 6.7949805259705, 0, 0, 90); CreateObject(3526, 282.3717956543, 1837.7486572266, 6.7949805259705, 0, 0, 270); CreateObject(3526, 289.51742553711, 1837.7686767578, 6.7949805259705, 0, 0, 270); obj = CreateObject(10558, 226.70172119141, 1872.1823730469, 14.74577999115, 0, 0, 0); obj = CreateObject(2957, 283.33334350586, 1869.419921875, 9.3775978088379, 0, 0, 90); obj = CreateObject(2957, 275.74801635742, 1864.1689453125, 9.3775978088379, 0, 0, 0); obj = CreateObject(2957, 268.23663330078, 1863.8341064453, 9.3775978088379, 0, 0, 0); obj = CreateObject(10558, 256.21795654297, 1836.9090576172, 5.7369527816772, 0, 0, 0); obj = CreateObject(1649, 268.26989746094, 1873.416015625, 12.176422119141, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { switch (classid) { case 0,112,111: { GameTextForPlayer(playerid, "Army", 1000, 6); } case 2,3: { GameTextForPlayer(playerid, "Alien", 1000, 6); } case 4,5,6: { GameTextForPlayer(playerid, "Army Doctor", 1000, 6); } } SetPlayerPos(playerid, 279.2072,1863.0006,8.7578); SetPlayerFacingAngle(playerid,175.1676); SetPlayerCameraPos(playerid, 275.4064,1862.8763,8.7578); SetPlayerCameraLookAt(playerid, 275.4064,1862.8763,8.7578); LimitGlobalChatRadius(20.0); ShowNameTags(0); return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid,COLOR_GREEN,"Welcome To: Alien VS Army, The aliens have escaped trying to kill them before they kill your!"); new name[256]; new string[256]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Joined The Server", name); SendClientMessageToAll(COLOR_SKYBLUE, string); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { SetPlayerHealth(154,10000); GivePlayerWeapon(287,44,1); 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[]) { if(strcmp(cmdtext, "/open", true) == 0) { new string[50]; new movetime = MoveObject(obj, 226.70172119141, 1872.1501464844, 18.659656524658, 0.20); new movetime = MoveObject(obj, 283.47189331055, 1869.8218994141, 13.683159828186, 0.20); new movetime = MoveObject(obj, 275.39022827148, 1864.2456054688, 12.096057891846, 0.20); new movetime = MoveObject(obj, 268.03076171875, 1863.9107666016, 10.397568702698, 0.20); new movetime = MoveObject(obj, 255.91418457031, 1834.4117431641, 8.4330930709839, 0.20); new movetime = MoveObject(obj, 268.26989746094, 1873.416015625, 12.176422119141, 0.20); format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime); SendClientMessageToAll (0xDEEE20FF, " ALERT: The gates are open all aliens can now escape, kill them for their kill your! "); return 1; } { if(strcmp(cmdtext, "/close", true) == 0) { MoveObject(obj, 226.70172119141, 1872.1823730469, 14.74577999115, 0.20); MoveObject(obj, 283.33334350586, 1869.419921875, 9.3775978088379, 0.20); MoveObject(obj, 226.74801635742, 1864.1689453125, 9.3775978088379, 0.20); MoveObject(obj, 268.23663330078, 1863.8341064453, 9.3775978088379, 0.20); MoveObject(obj, 256.21795654297, 1836.9090576172, 5.7369527816772, 0.20); MoveObject(obj, 268.26989746094, 1873.416015625, 12.176422119141, 0.20); SendClientMessageToAll (0xDEEE20FF, " ALERT: The gates will close, go right back to the basics that you immediately stuck! "); return 1; } } return 0; } public OnObjectMoved(objectid) { printf("Object %d was moved!",10558); return 1; }
eror:
Код:
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(187) : error 021: symbol already defined: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(188) : error 021: symbol already defined: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(189) : error 021: symbol already defined: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(190) : error 021: symbol already defined: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(191) : error 021: symbol already defined: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(190) : warning 204: symbol is assigned a value that is never used: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(189) : warning 204: symbol is assigned a value that is never used: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(188) : warning 204: symbol is assigned a value that is never used: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(187) : warning 204: symbol is assigned a value that is never used: "movetime" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\NEW(2)~1.PWN(186) : warning 204: symbol is assigned a value that is never used: "movetime" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.