Jump to content

star69

Membru
  • Posts

    55
  • Joined

  • Last visited

Everything posted by star69

  1. Am bagat 9 boti cu racksamp , dupa i-am scos. cand am intrat, ma spawna la 0, 0, 0 intruna. Cum pot rezolva?
  2. Trimite mesaj la admini ca a folosit comanda. Am rezolvat cu comanda. Da` uneori serverul o ia razna. In mod obisnuit apare OnPlayerRequestClass, sa selectezi clasa. Cand o ia razna serverul nu apare si nu ii face acelui jucator SetSpawnInfo unde trebuie, il face la 0.0, 0.0, 0.0. Am crashdetect si nu spune nimic. Cred ca era de la comanda. Astept sa vad daca mai face asa si revin
  3. COMMAND:report(playerid, params[]) { // Setup local variables new OtherPlayer, Name[24], Reason[128], Msg[128]; // Send the command to all admins so they can see it SendAdminText(playerid, "/report", params); // Check if the player has logged in if (gLogged[playerid] == 1) { if(OtherPlayer == INVALID_PLAYER_ID) { if (sscanf(params, "us[128]", OtherPlayer, Reason)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/report <OtherPlayer> <Your report>\""); else { // Check if that other player is logged in if (gLogged[OtherPlayer] == 1) { // Send the report to all admins and add the report to the report-list so admins can review it SendReportToAdmins(OtherPlayer, Reason); // Get the name of the offender GetPlayerName(OtherPlayer, Name, sizeof(Name)); // Let the player know he reported the other player format(Msg, 128, "{00FF00}You've reported {FFFF00}%s", Name); SendClientMessage(playerid, 0xFFFFFFFF, Msg); } else SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}That player isn't connected"); } } else SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}That player isn't connected"); } else return 0; // Let the server know that this was a valid command return 1; }
  4. Problema intalnita (descriere): Apar niste erori in server_long si cand se conecteaza un jucator cu id 9, ii apar probleme, de exemplu locul de spawn se pune la 0.0, 0.0, 0.0Ero(area / rile) / warning-(ul / urile): [13:05:48] [debug] Run time error 4: "Array index out of bounds" [13:05:48] [debug] Accessing element at index 65535 past array upper bound 999 [13:05:48] [debug] AMX backtrace: [13:05:48] [debug] #0 0025bd60 in public cmd_report (5, 3483604) from plm.amx [13:05:48] [debug] #1 native CallLocalFunction () from samp03svr [13:05:48] [debug] #2 00003790 in public OnPlayerCommandText (5, 3483368) from plm.amx Liniile de cod / sursa / script-ul(obligatoriu): [13:05:48] [debug] Run time error 4: "Array index out of bounds" [13:05:48] [debug] Accessing element at index 65535 past array upper bound 999 [13:05:48] [debug] AMX backtrace: [13:05:48] [debug] #0 0025bd60 in public cmd_report (5, 3483604) from plm.amx [13:05:48] [debug] #1 native CallLocalFunction () from samp03svr [13:05:48] [debug] #2 00003790 in public OnPlayerCommandText (5, 3483368) from plm.amx Imagini / Video (optional):Ati incercat sa rezolvati singur?: Da nu este problema la comanda report, se intampla si la alte comenzi. Dupa ce intra 9 jucatori.
  5. Problema intalnita (descriere): In printf X si Y nu se creaza in formatul xx.xxEro(area / rile) / warning-(ul / urile): Nu suntLiniile de cod / sursa / script-ul(obligatoriu): #include <a_samp> #include <streamer> #define MAX_ANIM 20 #define DEER_SPAWN_LOC 1 new Float:DeerSpawn[DEER_SPAWN_LOC][3]= { {22.0,2.002,0.001} } ; public OnFilterScriptInit() { for(new i=0;i<MAX_ANIM;i++) { new rand=random(DEER_SPAWN_LOC); new Float:X=DeerSpawn[rand][0]; new Float:Y=DeerSpawn[rand][1]; //CreateDeer(X,Y); printf("S-a creat %d %d", X, Y); } return 1; } Imagini / Video (optional):Ati incercat sa rezolvati singur?: Da In log: [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213 [22:46:13] S-a creat 1102053376 1073750213
  6. Ero(area / rile) / warning-(ul / urile): : error 035: argument type mismatch (argument 2)Liniile de cod / sursa / script-ul(obligatoriu): TextDrawBoxColor(APlayerData[playerid][MissionText], BarColor[PlayerInfo[playerid][pBar]]); Problema intalnita (descriere): unde e BarColor[PlayerInfo[playerid][pBar]], trebuie sa fie o culoare. Eu vreau ca fiecare jucator sa-si poata schimba culoarea acolo. Am facut: new BarColor[3][24] = { {"0x9600CCE2"}, // {"0xC30000FF"}, // {"0x00FF14FF"} // }; Aici functioneaza COMMAND:mycolor(playerid, params[]) { // Check if the player has logged in if(gLogged[playerid] == 1) { SendClientMessage(playerid, -1, BarColor[PlayerInfo[playerid][pBar]]); } // Let the server know that this was a valid command return 1; } In mysql pBar e 0,1 sau 2Imagini / Video (optional):Ati incercat sa rezolvati singur?: Da
  7. asa am facut, dar cu float z n-am reusit float z functioneaza cu MapAndreas dupa acest script stock Float: GetPointZPos(const Float: fX, const Float: fY, &Float: fZ = 0.0) { if(!((-3000.0 < fX < 3000.0) && (-3000.0 < fY < 3000.0))) { return 0.0; } static File: s_hMap ; if(!s_hMap) { s_hMap = fopen("SAfull.hmap", io_read); if(!s_hMap) { return 0.0; } } new afZ[1] ; fseek(s_hMap, ((6000 * (-floatround(fY, floatround_tozero) + 3000) + (floatround(fX, floatround_tozero) + 3000)) << 1)); fblockread(s_hMap, afZ); return (fZ = ((afZ[0] >>> 16) * 0.01)); } [debug] #0 0002e4c0 in ?? (-604, -1308, 3470244) from plm.amx Ma poti ajuta?
  8. asa am facut si am spus ca nu mai apar acele erori
  9. Nu imi mai da erorile Callback-ul MovingDeer este solicitat in: OnPlayerShoot , OnPlayerUpdate , CreateDeer
  10. SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [20:07:06] filterscripts = "" (string) [20:07:06] [20:07:06] Server Plugins [20:07:06] -------------- [20:07:06] Loading plugin: mysql [20:07:06] >> plugin.mysql: R39-5 successfully loaded. [20:07:06] Loaded. [20:07:06] Loading plugin: sscanf [20:07:06] [20:07:06] =============================== [20:07:06] sscanf plugin loaded. [20:07:06] Version: 2.8.2 [20:07:06] (c) 2012 Alex "Y_Less" Cole [20:07:06] =============================== [20:07:06] Loaded. [20:07:06] Loading plugin: crashdetect.dll [20:07:06] CrashDetect v4.15.1 is OK. [20:07:06] Loaded. [20:07:06] Loading plugin: streamer [20:07:06] *** Streamer Plugin v2.8.2 by Incognito loaded *** [20:07:06] Loaded. [20:07:06] Loaded 4 plugins. [20:07:06] [20:07:06] Filterscripts [20:07:06] --------------- [20:07:06] Loaded 0 filterscripts. [20:07:06] [20:07:06] [20:07:06] [20:07:06] ======================================= [20:07:06] | | [20:07:06] | YSI version 3.09.0684 | [20:07:06] | By Alex "Y_Less" Cole | [20:07:06] | | [20:07:06] ======================================= [20:07:06] [20:07:06] [MYSQL]: Connection to database (truck) was established! [20:07:06] Debug information [20:07:06] ------------------------------------- [20:07:06] Last vehicle ID: 120 [20:07:06] Last object ID: 0 [20:07:06] (null) [20:07:06] (null) [20:07:06] (null) [20:07:06] ------------------------------------- [20:07:06] Actors Everywhere Loaded. Author: Roger Costa ''NikO'' [20:01:59] [20:01:59] [20:01:59] RPG: v0.2 Beta LS-LV-SF [20:01:59] _____________________ [20:01:59] Number of vehicle models: 23 [20:02:00] [House System] Loaded 19 houses. [20:02:00] [House System] Loaded 8 furnitures. [20:02:00] [Business System] Loaded 1 businesses. [20:02:00] Loaded 3 vehicles from plm [20:02:02] plm has logged in. [20:02:09] plm used: /car [20:03:54] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [20:03:54] [debug] Stack pointer (STK) is 0x34C578, heap pointer (HEA) is 0x34C53C [20:03:54] [debug] AMX backtrace: [20:03:54] [debug] #0 0002e4c0 in ?? (-1003932818, -995824004, 3458464) from plm.amx [20:03:54] [debug] #1 0003022c in public MovingDeer (213) from plm.amx [20:03:54] [debug] #2 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #3 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #4 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #5 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #6 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #7 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #8 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #9 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #10 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #11 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #12 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #13 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #14 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #15 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #16 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #17 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #18 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #19 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #20 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #21 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #22 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #23 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #24 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #25 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #26 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #27 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #28 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #29 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #30 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #31 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #32 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #33 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #34 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #35 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #36 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #37 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #38 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #39 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #40 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #41 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #42 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #43 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #44 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #45 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #46 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #47 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #48 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #49 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #50 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #51 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #52 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #53 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #54 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #55 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #56 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #57 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #58 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #59 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #60 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #61 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #62 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #63 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #64 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #65 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #66 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #67 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #68 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #69 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #70 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #71 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #72 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #73 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #74 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #75 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #76 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #77 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #78 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #79 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #80 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #81 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #82 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #83 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #84 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #85 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #86 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #87 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #88 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #89 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #90 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #91 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #92 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #93 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #94 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #95 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #96 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #97 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #98 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #99 00030828 in public MovingDeer (213) from plm.amx [20:03:54] [debug] #100 00030828 in public MovingDeer (213) from plm.amx
  11. Am crashdetect. alceva nu-mi da
  12. Problema intalnita (descriere): Uneori dupa ce deschid serverul si trece un timp, primesc o eroare in server_long Ero(area / rile) / warning-(ul / urile): [13:10:03] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [13:10:03] [debug] Stack pointer (STK) is 0x33CF38, heap pointer (HEA) is 0x33CEFC [13:10:03] [debug] AMX backtrace: [13:10:03] [debug] #0 0002d890 in ?? (-1004440722, -996053380, 3395424) from plm.amx [13:10:03] [debug] #1 0002f5fc in public MovingDeer (2) from plm.amx [13:10:03] [debug] #2 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #3 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #4 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #5 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #6 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #7 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #8 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #9 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #10 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #11 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #12 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #13 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #14 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #15 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #16 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #17 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #18 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #19 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #20 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #21 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #22 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #23 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #24 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #25 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #26 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #27 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #28 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #29 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #30 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #31 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #32 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #33 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #34 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #35 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #36 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #37 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #38 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #39 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #40 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #41 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #42 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #43 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #44 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #45 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #46 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #47 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #48 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #49 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #50 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #51 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #52 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #53 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #54 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #55 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #56 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #57 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #58 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #59 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #60 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #61 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #62 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #63 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #64 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #65 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #66 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #67 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #68 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #69 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #70 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #71 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #72 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #73 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #74 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #75 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #76 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #77 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #78 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #79 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #80 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #81 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #82 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #83 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #84 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #85 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #86 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #87 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #88 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #89 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #90 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #91 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #92 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #93 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #94 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #95 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #96 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #97 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #98 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #99 0002fbf8 in public MovingDeer (2) from plm.amx [13:10:03] [debug] #100 0002fbf8 in public MovingDeer (2) from plm.amx Liniile de cod / sursa / script-ul(obligatoriu): public MovingDeer(DeerID) { if(DeerKO[DeerID]==0&&DeerMove[DeerID]==0) { new Float:X,Float:Y,Float:Z,Float:Xrand,Float:Yrand,Float:Zrand,Float:speedRand,Float:Angle; GetDynamicObjectPos(DeerObject[DeerID],X,Y,Z); new rand1=random(2),rand2=random(2); if(rand1==0) Xrand=X+10+float(random(10)); else Xrand=X-10-float(random(10)); if(rand2==0) Yrand=Y+10+float(random(10)); else Yrand=Y-10-float(random(10)); Zrand=GetPointZPos(Xrand,Yrand,Zrand); speedRand=7+float(random(9)); if((Xrand-X)>0&&(Yrand-Y)>0)Angle=atan((Yrand-Y)/(Xrand-X)); else Angle=atan((Yrand-Y)/(Xrand-X))-180; if(floatabs(Zrand-Z)<3.0) { if(IsPosInDeerZone(Xrand,Yrand)) { GetPointZPos(Xrand,Yrand,Zrand); SetDynamicObjectRot(DeerObject[DeerID],0,0,Angle); MoveDynamicObject(DeerObject[DeerID],Xrand,Yrand,Zrand+0.3,speedRand,0,0,Angle); DeerMove[DeerID]=1; SetTimerEx("MovingDeer",10000+random(40000),false,"i",DeerID);//On peut changer la fréquence des mouvements } else MovingDeer(DeerID); } else MovingDeer(DeerID); } return 1; } Imagini / Video (optional): Tot scriptul este aici http://pastebin.com/T7AyH6sQ Ati incercat sa rezolvati singur?: Da
  13. new MaxRepair = 1000; new RepairMaxPrice = 1000; public RepairPVehicle(playerid) { new RepairMsg[128], Float:health; // Get the vehicle-id of the player's vehicle new vID = GetPlayerVehicleID(playerid); GetVehicleHealth(vID, health); // Calculate the amount of fuel that needs to be Repairled new Amount = MaxRepair - health; // Calculate the price to Repair new RepairPrice = (Amount * RepairMaxPrice) / MaxRepair; // Check if the player has enough cash if (PlayerInfo[playerid][pCash] >= RepairPrice) { // Repair the vehicle RepairVehicle(vID); // Withdraw the money from the player RewardPlayer(playerid, -RepairPrice, 0); // Let the player know he Repairled his vehicle format(RepairMsg, 128, TXT_RepairedVehicle, RepairPrice); SendClientMessage(playerid, 0xFFFFFFFF, RepairMsg); } else SendClientMessage(playerid, 0xFFFFFFFF, TXT_CannotRepairVehicle); // Allow the player to move again TogglePlayerControllable(playerid, 1); return 1; } Ceva nu functioneaza cum trebuie. Acest script repara masina, daca masina e stricata mai tare imi da bani cu - adica imi da bani in loc sa-mi ia si trece de limita impusa de mine MaxRepairPrice
  14. COMMAND:vcp(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) { new bool:found = false; for(new i = 0; i < MAX_VEH; i++) { if(Vehicles[i][vehicleData] == GetPlayerVehicleID(playerid) && Vehicles[i][vehStatus]) { if(!strcmp(Vehicles[i][vehOwner], GetName(playerid))) { new message[256]; format(message, sizeof(message), "Status \t\t\t"); if(Vehicles[i][vehLock]) format(message, sizeof(message), "%s"CHAT_YELLOW"Incuiat", message); else format(message, sizeof(message), "%s"CHAT_RED"Neincuiat", message); format(message, sizeof(message), "%s\nAlarma \t\t\t", message); if(Vehicles[i][vehAlarm]) format(message, sizeof(message), "%s"CHAT_YELLOW"Pornita", message); else format(message, sizeof(message), "%s"CHAT_RED"Oprita", message); format(message, sizeof(message), "%s\nNumar de inmatriculare \t\t\t"CHAT_YELLOW"%s", message, Vehicles[i][vehPlate]); format(message, sizeof(message), "%s\nParcheaza masina aici", message); format(message, sizeof(message), "%s\nCuloare 1\t\t"CHAT_YELLOW"%d", message, Vehicles[i][vehColor][0]); format(message, sizeof(message), "%s\nCuloare 2\t\t"CHAT_YELLOW"%d", message, Vehicles[i][vehColor][1]); Player[playerid][carVCP] = i; ShowPlayerDialog(playerid, DIALOG_VCP, DIALOG_STYLE_LIST, "Panoul de control al vehiculului", message, "Alege", "Renunta"); } else { Server(playerid, "Nu esti propietarul acestui vehicul."); } found = true; break; } } if(!found) { Server(playerid, "Aceasta comanda este doar pentru masinile personale."); } } else { Server(playerid, "Trebuie sa fii intr-un vehicul sa poti folosi aceasta comanda"); } return 1; } stock createVehicle(vehicleid, bool:removeold = false) { if(removeold) { DestroyVehicle(Vehicles[vehicleid][vehicleData]); } Vehicles[vehicleid][vehicleData] = CreateVehicle(Vehicles[vehicleid][vehModel], Vehicles[vehicleid][vehPos][0], Vehicles[vehicleid][vehPos][1], Vehicles[vehicleid][vehPos][2], Vehicles[vehicleid][vehPos][3], Vehicles[vehicleid][vehColor][0], Vehicles[vehicleid][vehColor][1], 360000); AVehicleData[Vehicles[vehicleid][vehicleData]][Fuel] = MaxFuel; SetVehicleNumberPlate(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehPlate]); LinkVehicleToInterior(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehInt]); SetVehicleVirtualWorld(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehVW]); for(new i = 0; i < 14; i++) { AddVehicleComponent(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehMods][i]); } ChangeVehicleColor(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehColor][0], Vehicles[vehicleid][vehColor][1]); ChangeVehiclePaintjob(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehPaint]); return 1; }
  15. case 2: { format(message, sizeof(message), "Current Plate : "CHAT_YELLOW"%s", Vehicles[i][vehPlate]); ShowPlayerDialog(playerid, DIALOG_CHANGEPLATE, DIALOG_STYLE_INPUT, "Schimba numarul de inmatriculare", message, "Schimba", "Renunta"); } case DIALOG_CHANGEPLATE: { if(response) { if(strlen(inputtext) > 10 || strlen(inputtext) < 3) { Server(playerid, "Introdu intre 3-10 caractere."); } else { new i = Player[playerid][carVCP]; if(i == INVALID_VEHICLE_ID) { Server(playerid, "Error when receiving vehicle data."); return 1; } format(Vehicles[i][vehPlate], 16, "%s", inputtext); SetVehicleNumberPlate(Vehicles[i][vehicleData], Vehicles[i][vehPlate]); createVehicle(Vehicles[i][vehicleData], true); } } cmd_vcp(playerid, ""); }
  16. Uneori serverul se blocheaza fara sa spuna nimic in server_log jucatorii raman pe server, chiar daca ei parasesc jocul, dupa ce se blocheaza serverul nimeni nu poate intra pe server dupa ce am facut update la pluginuri nu mi`a mai aparut [sampgdk:error] Too many callback arguments (at most 32 allowed) dar mi-a aparut [12:14:06] [debug] Run time error 4: "Array index out of bounds" [12:14:06] [debug] Accessing element at index 65535 past array upper bound 1999 [12:14:06] [debug] AMX backtrace: [12:14:06] [debug] #0 001c73e4 in ?? (123, 1) from plm.amx [12:14:06] [debug] #1 00186ae0 in public OnDialogResponse (2, 33, 1, -1, 3394652) from plm.amx
  17. Am facut. Am crashdetect
  18. Problema intalnita (descriere): Uneori se inchide serverul si imi apare eroarea de mai jos Ero(area / rile) / warning-(ul / urile): la compile nu apare nici o eroare Liniile de cod / sursa / script-ul(obligatoriu): 18:39:14] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:14] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed) [18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)
  19. Am pus objectul in OnGameModeInit, a functionat. Multumesc!
  20. zcmd. Lucrez de ceva timp la un server. Acum 2-3 saptamani imi mergea comanda. Am mai lucrat la server, am bagat mai multe sisteme, am luat si de pe net niste sisteme.. si acum nu imi mai merge. Nu stiu ce blocheaza, la player functioneaza SetPlayerAttachedObject. COMMAND:omulet(playerid, cmdtext[]) { SetPlayerAttachedObject(playerid, 3, 1609, 2); return 1; }
  21. COMMAND:masina(playerid, cmdtext[]) { new vehicleid = GetPlayerVehicleID(playerid); new testoasa = CreateObject(1609, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); AttachObjectToVehicle(testoasa, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); return 1; }
  22. nu merge, am incercat inainte
  23. Problema intalnita (descriere): Nu pot atasa niciun object la un vehicul Ero(area / rile) / warning-(ul / urile): Nu sunt Liniile de cod / sursa / script-ul(obligatoriu): COMMAND:masina(playerid, cmdtext[]) { new vehicleid = GetPlayerVehicleID(playerid); AttachObjectToVehicle(1609, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); return 1; } Imagini / Video (optional): Ati incercat sa rezolvati singur?: Da, in server_log nu apare nimic, am si crashdetect in server, nu spune nimic
  24. Problema intalnita (descriere): Cum pot sa scriu ceva la fiecare skin in meniul mSelection ca aici Ero(area / rile) / warning-(ul / urile): nu exista Liniile de cod / sursa / script-ul(obligatoriu): http://forum.sa-mp.com/showthread.php?t=407045 Imagini / Video (optional): Ati incercat sa rezolvati singur?: da
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.