+0130: 0x02080052 0x00000054 0x00000000 0x00584400 -------------------------- SA-MP Server: 0.3c Exception At Address: 0x004A4B44 Registers: EAX: 0x00000000 EBX: 0x00000400 ECX: 0x00000100 EDX: 0x7EFEFEFF ESI: 0x00000000 EDI: 0x04605C30 EBP: 0x0000000F ESP: 0x0018F394 EFLAGS: 0x00010216 Stack: +0000: 0x04E30020 0x046044C8 0x04605C30 0x0047CFFB +0010: 0x04605C30 0x00000000 0x00000400 0x0058B1F0 +0020: 0x00000000 0x0018F3EC 0x05A5127C 0x0000000F +0030: 0x0048837E 0x43F38000 0x43A00000 0x00000000 +0040: 0x0058B1F0 0x0058B1F0 0x04F44670 0x04E30020 +0050: 0x00000000 0x0576A004 0x04F908F0 0x00401096 +0060: 0x0058B1F0 0x05A5127C 0x052C4034 0x00402BB3 +0070: 0x0058B1F0 0x0000007D 0x0018F424 0x05A5127C +0080: 0x0018F8B4 0x00000000 0x00000000 0x0058B1F0 +0090: 0x00461048 0x00461048 0x0078D248 0x0078D414 +00A0: 0x0056D548 0x0078D408 0x0056D548 0x04F44670 +00B0: 0x052C4034 0x00000000 0x04F40020 0x0037F9C4 +00C0: 0x0048782E 0x0058B1F0 0x0018F8A4 0x0000024D +00D0: 0x646D637A 0x476E4F5F 0x4D656D61 0x4965646F +00E0: 0x0074696E 0x0058B1F0 0x0058B1F0 0x04F44670 +00F0: 0x00000000 0x00000000 0x00000000 0x00000000 +0100: 0x00000000 0x00000000 0x00000000 0x00000000 +0110: 0x00000000 0x00000000 0x00000000 0x00000000 +0120: 0x00000000 0x00000000 0x00000000 0x00000000 +0130: 0x0000000A 0x027F0000 0x000000D0 0x027FF290
new Language[MAX_PLAYERS] = 0; SendClientMessage(playerid,0xC0C0C0FF,"Please choose a language : /en /et(default is EN)"); CMD:help(playerid,params[]){ #pragma unused params switch (Language[playerid]) { case 0: { SendClientMessage(playerid, COLOR_YELLOW, "For GENERAL commands, please type /commands. -=|=- For ADMIN/ACCOUNT commands, please type /lhelp."); SendClientMessage(playerid, COLOR_YELLOW, "For VEHICLE commands please type /v(menu/list). -=|=- For BUSINESS commands, please type /bmenu."); SendClientMessage(playerid, COLOR_YELLOW, "For HOUSE commands, please type /hmenu -=|=- For BANK commands, please type /bankhelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "For MEDIC commands, please type /medichelp(l). -=|=- For LAW commands, please type /lawhelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "For CELLPHONE commands, please type /cellhelp(l). -=|=- For CRIMINAL commands, please type /crimehelp(l)"); SendClientMessage(playerid, COLOR_YELLOW, "For TELEPORT commands, please type /telehelp(l). -=|=- For GANG commands, please type /ganghelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "For RACE commands, please type /racehelp(l). -=|=- For WEED commands, please type /weedhelp(l)"); SendClientMessage(playerid, COLOR_YELLOW, "For help using the new LIST UI, please type /listhelp"); } case 1: { SendClientMessage(playerid, COLOR_YELLOW, "ЬLDISED kдsud /commands. -=|=- ADMINI kдsud /lhelp."); SendClientMessage(playerid, COLOR_YELLOW, "SХIDUKI kдsud /v(menu/list). -=|=- ДRA kдsud /bmenu."); SendClientMessage(playerid, COLOR_YELLOW, "KODU kдsud /hmenu -=|=- PANGA kдsud /bankhelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "MEEDIKU kдsud /medichelp(l). -=|=- SEADUSE kдsud /lawhelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "MOBIILI kдsud /cellhelp(l). -=|=- KURJATEGIJA kдsud /crimehelp(l)"); SendClientMessage(playerid, COLOR_YELLOW, "TELEPORDI kдsud /telehelp(l).-=|=- KДNGI kдsud /ganghelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "RALLY kдsud /racehelp(l). -=|=- KANEPI kдsud /weedhelp(l)"); SendClientMessage(playerid, COLOR_YELLOW, "LIST UI kдsud /listl ja abi /listhelp"); } } return 1; } CMD:en(playerid,params[]) { Language[playerid] = 0; SendClientMessage(playerid,0xC0C0C0FF,"You choose the english language."); return 1; } CMD:et(playerid,params[]) { Language[playerid] = 1; SendClientMessage(playerid,0xC0C0C0FF,"Sa valisid eesti keele. (Terve mдng ei ole eesti keelde tхlkitud)"); return 1; }
I can't give you gamemode code it is too long to post.
I tryed to get help at gamemode topic but no answers. But i translated it without no errors. And server crashes. Код:
+0130: 0x02080052 0x00000054 0x00000000 0x00584400 -------------------------- SA-MP Server: 0.3c Exception At Address: 0x004A4B44 Registers: EAX: 0x00000000 EBX: 0x00000400 ECX: 0x00000100 EDX: 0x7EFEFEFF ESI: 0x00000000 EDI: 0x04605C30 EBP: 0x0000000F ESP: 0x0018F394 EFLAGS: 0x00010216 Stack: +0000: 0x04E30020 0x046044C8 0x04605C30 0x0047CFFB +0010: 0x04605C30 0x00000000 0x00000400 0x0058B1F0 +0020: 0x00000000 0x0018F3EC 0x05A5127C 0x0000000F +0030: 0x0048837E 0x43F38000 0x43A00000 0x00000000 +0040: 0x0058B1F0 0x0058B1F0 0x04F44670 0x04E30020 +0050: 0x00000000 0x0576A004 0x04F908F0 0x00401096 +0060: 0x0058B1F0 0x05A5127C 0x052C4034 0x00402BB3 +0070: 0x0058B1F0 0x0000007D 0x0018F424 0x05A5127C +0080: 0x0018F8B4 0x00000000 0x00000000 0x0058B1F0 +0090: 0x00461048 0x00461048 0x0078D248 0x0078D414 +00A0: 0x0056D548 0x0078D408 0x0056D548 0x04F44670 +00B0: 0x052C4034 0x00000000 0x04F40020 0x0037F9C4 +00C0: 0x0048782E 0x0058B1F0 0x0018F8A4 0x0000024D +00D0: 0x646D637A 0x476E4F5F 0x4D656D61 0x4965646F +00E0: 0x0074696E 0x0058B1F0 0x0058B1F0 0x04F44670 +00F0: 0x00000000 0x00000000 0x00000000 0x00000000 +0100: 0x00000000 0x00000000 0x00000000 0x00000000 +0110: 0x00000000 0x00000000 0x00000000 0x00000000 +0120: 0x00000000 0x00000000 0x00000000 0x00000000 +0130: 0x0000000A 0x027F0000 0x000000D0 0x027FF290 Код:
new Language[MAX_PLAYERS] = 0; SendClientMessage(playerid,0xC0C0C0FF,"Please choose a language : /en /et(default is EN)"); CMD:help(playerid,params[]){ #pragma unused params switch (Language[playerid]) { case 0: { SendClientMessage(playerid, COLOR_YELLOW, "For GENERAL commands, please type /commands. -=|=- For ADMIN/ACCOUNT commands, please type /lhelp."); SendClientMessage(playerid, COLOR_YELLOW, "For VEHICLE commands please type /v(menu/list). -=|=- For BUSINESS commands, please type /bmenu."); SendClientMessage(playerid, COLOR_YELLOW, "For HOUSE commands, please type /hmenu -=|=- For BANK commands, please type /bankhelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "For MEDIC commands, please type /medichelp(l). -=|=- For LAW commands, please type /lawhelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "For CELLPHONE commands, please type /cellhelp(l). -=|=- For CRIMINAL commands, please type /crimehelp(l)"); SendClientMessage(playerid, COLOR_YELLOW, "For TELEPORT commands, please type /telehelp(l). -=|=- For GANG commands, please type /ganghelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "For RACE commands, please type /racehelp(l). -=|=- For WEED commands, please type /weedhelp(l)"); SendClientMessage(playerid, COLOR_YELLOW, "For help using the new LIST UI, please type /listhelp"); } case 1: { SendClientMessage(playerid, COLOR_YELLOW, "ЬLDISED kдsud /commands. -=|=- ADMINI kдsud /lhelp."); SendClientMessage(playerid, COLOR_YELLOW, "SХIDUKI kдsud /v(menu/list). -=|=- ДRA kдsud /bmenu."); SendClientMessage(playerid, COLOR_YELLOW, "KODU kдsud /hmenu -=|=- PANGA kдsud /bankhelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "MEEDIKU kдsud /medichelp(l). -=|=- SEADUSE kдsud /lawhelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "MOBIILI kдsud /cellhelp(l). -=|=- KURJATEGIJA kдsud /crimehelp(l)"); SendClientMessage(playerid, COLOR_YELLOW, "TELEPORDI kдsud /telehelp(l).-=|=- KДNGI kдsud /ganghelp(l)."); SendClientMessage(playerid, COLOR_YELLOW, "RALLY kдsud /racehelp(l). -=|=- KANEPI kдsud /weedhelp(l)"); SendClientMessage(playerid, COLOR_YELLOW, "LIST UI kдsud /listl ja abi /listhelp"); } } return 1; } CMD:en(playerid,params[]) { Language[playerid] = 0; SendClientMessage(playerid,0xC0C0C0FF,"You choose the english language."); return 1; } CMD:et(playerid,params[]) { Language[playerid] = 1; SendClientMessage(playerid,0xC0C0C0FF,"Sa valisid eesti keele. (Terve mдng ei ole eesti keelde tхlkitud)"); return 1; } |
//==============================Gate Defines==================================== forward GateTimer(); new GGateTimer; //allows killtimer #define TOLERANCE 20 #define OPENSPEED 5 #define CLOSESPEED 5 #define TIMERSPEED 2000 //(MILLISeconds, eg 1000 = 1, 2000 = 2, 1500 = 1.5) const GateNum = 38; //number of gates present (defines other arrays) new Float:GateInfo[GateNum][10]; //stores all gate c-ords (Start, Fnish, Center) new GateState[GateNum]; //Whether the gate is open closed (not currently in use) new OpenGate[GateNum]; //Whether or not to open the gate when the loop finishes new GateObject[GateNum]; //stores gate object ID's new Float:Tempx, Float:Tempy, Float:Tempz; //Holds player position during loops new Float:xtol1, Float:xtol2, Float:ytol1, Float:ytol2; //Holds area bounds during loops new HasPGP[MAX_PLAYERS]; new HasAirP[MAX_PLAYERS];
GGateTimer = SetTimer("GateTimer", TIMERSPEED, true);
MakeGate(976, -1571.597,665.725,6.349, -1571.597,656.572,6.349, -1571.5579,661.2339,7.1875, -90.0, 1, 0); // SFPD East MakeGate(976, -1643.446,676.774,6.662, -1643.446,685.551,6.662, -1643.4032,682.6055,7.4930, 90.0, 1, 1); // SFPD West MakeGate(976, 2236.992,2448.932,9.848, 2236.992,2457.979,9.848, 2236.992,2453.1646,10.7047, 90.0, 1, 2); // Las Venturas MakeGate(976, 1539.658,-1631.631,12.545, 1539.658,-1624.255,12.545, 1539.658,-1628.0244,13.3828, 90.0, 1, 3); //Los Santos MakeGate(980, -2914.917969,-68.470116,4.496734, -2914.917969,-68.470116,9.400000, -2914.917969,-68.470116,6.948367, 270.0000, 3, 4); //AdminCastle MakeGate(17951, -1643.2749,1204.2693,8.0269, -1643.2852,1204.2737,10.8821, -1643.28005,1204.2715,9.4545, 342.8113, 0, 5); //PinkAutos MakeGate(980, 1282.1063232422,-2056.4731445313,60.592842102051, 1282.2838134766,-2056.4997558594,66.682270050049, 1282.1950683594,-2056.48645019535,63.63755607605, 270, 2, 6); //airport 1 MakeGate(980, 321.0302734375,-1188.4130859375,78.142333984375, 312.78414916992,-1193.8479003906,78.142333984375, 318.40721130371,-1190.63049316405,78.142333984375, 38, 3, 7); //Admin House MakeGate(980, 1497.8857421875,-709.62255859375,96.523391723633, 1497.1560058594,-709.62255859375,88.2012939453125, 1497.02087402345,-709.62255859375,92.36234283447275, 180, 2, 8); //airport 3 MakeGate(980, 1497.318359375,-709.3671875,96.523391723633, 1485.7620849609,-709.35998535156,96.443458557129, 1491.54022216795,-709.36358642578,96.483425140381, 180, 0, 9); //House Gate 1 MakeGate(980, 1462.8388671875,-731.10595703125,95.184867858887, 1462.2287597656,-719.63891601563,93.986442565918, 1462.53381347655,-725.37243652344,94.5856552124025, 93.2, 0, 10); //House Gate 2 MakeGate(980, 1493.078125,-767.310546875,88.566909790039, 1503.455078125,-770.77526855469,85.193840026855, 1498.2666015625,-769.042907714845,86.880374908447, 161.5, 0, 11); //House Gate 3 MakeGate(986,-3623.13183600,-1416.80688500,8.74234200, -3614.64013672,-1416.50781250,8.74234200, -3618.88598636,-1416.65734875,8.742342, 186.39350000, 3, 12); // Admin Area Gate MakeGate(985,-3631.01684600,-1417.17138700,8.74234200, -3638.50195312,-1417.64697266,8.74234200, -3634.75939956,-1417.40917983,8.742342, 179.51820000, 3, 13); // Admin Area Gate MakeGate(7657,2342.63452148,2690.63793945,44.64801407, 2324.69458008,2681.75952148,44.64801407, 2333.66455078,2686.198730465,44.64801407, 26.30126953, 3, 14);//Admin Gate 1A MakeGate(7657,2342.63452148,2690.63793945,41.20777512, 2324.69458008,2681.75952148,41.20777512, 2333.66455078,2686.198730465,41.20777512, 26.30126953, 3, 15);//Admin Gate 1B MakeGate(7657,2360.38500977,2699.60449219,44.65261078, 2378.30493164,2708.47167969,44.65261078, 2369.34497070,2704.038085945,44.65261078, 26.30126953, 3, 16);//Admin Gate 2A MakeGate(7657,2360.38500977,2699.60449219,41.20777512, 2378.30493164,2708.47167969,41.20777512, 2369.34497070,2704.038085945,41.20777512, 26.30126953, 3, 17);//Admin Gate 2B MakeGate(980,-2019.263794,400.581604,36.945267, -2019.310913,400.609711,31.419975, -2019.2873535,400.5956575,34.182621, 270.0000, 0, 18);//Base Gate - king_shawn MakeGate(980,1206.85461426,3223.29467773,19.47368813, 1216.8546142578,3223.2946777344,19.47368813, 1211.8546142589,3223.2946777322,19.47368813, 186, 3, 19);//Admin Gate - [bT]Sevan MakeGate(980, 29.2138671875,2061.611328125,21.790439605713, 17.2138671875,2061.611328125,21.790439605713, 23.2138671875,2061.611328125,21.790439605713, 1.99951171875, 0, 20);//BlackWarriors Gate - Maddog MakeGate(980, 32.5576171875,1942.4658203125,21.727754592896, 44.4576171875,1942.4658203125,21.727754592896, 38.5076171875,1942.4658203125,21.727754592896, 181.99951171875, 0, 21);//BlackWarriors Gate - Maddog MakeGate(980, -1922.2758789063,2164.5300292969,5.7216854095459, -1922.1153564453,2165.2409667969,5.7216854095459, -1922.1956176758,2164.8854980469,5.7216854095459, 344, 3, 22); //House Gate For Crazyloco 1 MakeGate(980, -2158.1433105469,2127.3835449219,5.9233913421631, -2157.552734375,2127.1298828125,5.9233913421631, -2157.84802246095,2127.2567138672,5.9233913421631, 252, 3, 23); //House Gate For Crazyloco 2 MakeGate(980,-821.30035400,-1958.71142578,8.77339172, -823.88250732,-1970.14990234,8.77339172, -822.59143066,-1964.43066406, 8.77339172, 76, 3, 24); MakeGate(980, -2914.917969,-68.470116,4.496734, -2914.917969,-68.470116,9.400000, -2914.917969,-68.470116,6.948367, 270.0000, 3, 4); //AdminCastle MakeGate(17951, -1643.2749,1204.2693,8.0269, -1643.2852,1204.2737,10.8821, -1643.28005,1204.2715,9.4545, 342.8113, 0, 5); //PinkAutos // Cage MakeGate(3095, -423.692413,2201.705811,59.923141, -423.692413,2201.705811,50.923096, -423.692413,2201.705811,55.4231185, 90.2409, 0, 6); //Cage U MakeGate(3095, -423.686127,2215.716309,45.926369, -423.686127,2206.743164,45.926369, -423.686127,2211.2297365,45.926369, 90.3447, 0, 7); //Cage N MakeGate(3095, -409.680603,2201.730713,45.926369, -418.655365,2201.730713,45.926369, -414.167984,2201.730713,45.926369, 269.7591, 0, 8); //Cage O MakeGate(3095, -423.685608,2187.702881,45.913692, -423.685608,2196.700928,45.913692, -423.685608,2192.2019045,45.913692, 269.8631, 0, 9); //Cage Z MakeGate(3095, -437.683075,2201.718506,45.926338, -428.733124,2201.718506,45.926338, -433.2080995,2201.718506,45.926338, 179.6223, 0, 10); //Cage W MakeGate(980, 1282.1063232422,-2056.4731445313,60.592842102051, 1282.2838134766,-2056.4997558594,66.682270050049, 1282.1950683594,-2056.48645019535,63.63755607605, 270, 2, 11); //airport 1 MakeGate(980, 321.0302734375,-1188.4130859375,78.142333984375, 312.78414916992,-1193.8479003906,78.142333984375, 318.40721130371,-1190.63049316405,78.142333984375, 38, 3, 12); //Admin House MakeGate(980, 1497.8857421875,-709.62255859375,96.523391723633, 1497.1560058594,-709.62255859375,88.2012939453125, 1497.02087402345,-709.62255859375,92.36234283447275, 180, 2, 13); //airport 3 MakeGate(980, 1497.318359375,-709.3671875,96.523391723633, 1485.7620849609,-709.35998535156,96.443458557129, 1491.54022216795,-709.36358642578,96.483425140381, 180, 0, 14); //House Gate 1 MakeGate(980, 1462.8388671875,-731.10595703125,95.184867858887, 1462.2287597656,-719.63891601563,93.986442565918, 1462.53381347655,-725.37243652344,94.5856552124025, 93.2, 0, 15); //House Gate 2 MakeGate(980, 1493.078125,-767.310546875,88.566909790039, 1503.455078125,-770.77526855469,85.193840026855, 1498.2666015625,-769.042907714845,86.880374908447, 161.5, 0, 16); //House Gate 3
//=================================Gate Stuff=================================== public GateTimer() { for(new tempgate=0; tempgate<GateNum; tempgate++) { for(new pid=0; pid<MAX_PLAYERS; pid++) { if(GateInfo[tempgate][9] == 0 && OpenGate[tempgate] == 0) OpenGate[tempgate] = IsPlayerNearGate(pid, tempgate, TOLERANCE); if(GateInfo[tempgate][9] == 1 && OpenGate[tempgate] == 0 && HasPGP[pid] == 1) OpenGate[tempgate] = IsPlayerNearGate(pid, tempgate, TOLERANCE); if(GateInfo[tempgate][9] == 2 && OpenGate[tempgate] == 0 && HasAirP[pid] == 1) OpenGate[tempgate] = IsPlayerNearGate(pid, tempgate, TOLERANCE); if(GateInfo[tempgate][9] == 3 && OpenGate[tempgate] == 0 && PlayerInfo[pid][Level] > 0) OpenGate[tempgate] = IsPlayerNearGate(pid, tempgate, TOLERANCE); } if(OpenGate[tempgate] == 1) MoveDynamicObject(GateObject[tempgate], GateInfo[tempgate][3], GateInfo[tempgate][4], GateInfo[tempgate][5], OPENSPEED), GateState[tempgate] = 1; else MoveDynamicObject(GateObject[tempgate], GateInfo[tempgate][0], GateInfo[tempgate][1], GateInfo[tempgate][2], CLOSESPEED), GateState[tempgate] = 0; OpenGate[tempgate] = 0; } return 1; } MakeGate(z, Float:a, Float:b, Float:c, Float:d, Float:e, Float:f, Float:g, Float:h, Float:i, Float:j, type, k) { GateInfo[k][0] = a, GateInfo[k][1] = b, GateInfo[k][2] = c; //Start GateInfo[k][3] = d, GateInfo[k][4] = e, GateInfo[k][5] = f; //Finish GateInfo[k][6] = g, GateInfo[k][7] = h, GateInfo[k][8] = i; //Center GateInfo[k][9] = type; GateState[k] = 0; //Gate Closed GateObject[k] = CreateDynamicObject(z ,a, b, c, 0.0,0.0,j); } stock IsPlayerNearGate(pid, tempgate, tolerance) { GetPlayerPos(pid, Tempx, Tempy, Tempz); xtol1 = GateInfo[tempgate][6] + tolerance; xtol2 = GateInfo[tempgate][6] - tolerance; ytol1 = GateInfo[tempgate][7] + tolerance; ytol2 = GateInfo[tempgate][7] - tolerance; if(Tempx >= xtol2 && Tempx <= xtol1 && Tempy >= ytol2 && Tempy <= ytol1) return 1; return 0; } stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) { if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } } return 0; }