Jump to content

CaTaLinU

Membru
  • Posts

    24
  • Joined

  • Last visited

    Never

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CaTaLinU's Achievements

Contributor

Contributor (5/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. for(new h = 184; h < sizeof(CarInfo); h++) { AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); SetVehicleNumberPlate(h,CarInfo[h][cLicense]); } asta trebuie adaugat la OnGameModInit dar in loc de 184 scriu cate masini civile am in GM + 1 ? adica daca am 341 acolo sa trec 342 ?
  2. Am si eu comanda /repair if(strcmp(cmd, "/repair", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] != 7) { SendClientMessage(playerid, COLOR_GREY, "Nu esti Mecanic sau nu faci parte din Need For Speed!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /repair [playerid/PartOfName] [price]"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if(money < 1 || money > 2000) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then 1, or above 2000!"); return 1; } if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { if(ProxDetectorS(8.0, playerid, playa)&& IsPlayerInAnyVehicle(playa)) { if(playa == playerid) { SendClientMessage(playerid, COLOR_GREY, " Can't do that!"); return 1; } GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You offerd %s to fix his car for $%d .",giveplayer,money); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Car Mechanic %s wants to repair your car for $%d, (type /accept repair) to accept.",sendername,money); SendClientMessage(playa, COLOR_LIGHTBLUE, string); RepairOffer[playa] = playerid; RepairPrice[playa] = money; } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you / not in a car."); } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is offline."); } } return 1; } Nu stiu cum sa fac sa mearga aceasta comanda si la cei din Factiunea cu ID 16 .... Am incercat si cu if(PlayerInfo[playerid][pJob] != 7 || PlayerInfo[playerid][pMember] != 16) { SendClientMessage(playerid, COLOR_GREY, "Nu esti Mecanic sau nu faci parte din Need For Speed!"); return 1; } si tot nu merge
  3. am gasit eroarea, trebuie sa adaug la OnGameModeInit for(new h = 500; h < sizeof(CarInfo); h++) { CreateVehicle(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); SetVehicleNumberPlate(h,CarInfo[h][cLicense]); } Imi apar masinile in parcare , dar nu le citeste bine din cars.cfg :| Iar cand ma duc sa iau o masina civila imi zice ca si aia e de vanzare :| public IsAnOwnableCar(vehicleid) { if(vehicleid >= 500 && vehicleid <= 650) { return 1; } return 0; } asa am setat si vad ca nu vrea ( Iar apoi in cars.cfg bag vro 125 liniii de masini personale si cand dau save, si apoi restart server se reduc la vro 30 masini ......
  4. am in GameMod asa public IsAnOwnableCar(vehicleid) { if(vehicleid >= 184 && vehicleid <= 308) { return 1; } return 0; } si el imi citeste masinile din GM , create cu AddStaticVehicleEx as vrea sa citeasca masinile din cars.cfg in cars.cfg sunt vro 200 masini dar faza e ca nici pe server in parcare nu apar masinile va multumesc de ajutor
  5. am in GameMod asa public IsAnOwnableCar(vehicleid) { if(vehicleid >= 184 && vehicleid <= 308) { return 1; } return 0; } si el imi citeste masinile din GM , create cu AddStaticVehicleEx as vrea sa citeasca masinile din cars.cfg in cars.cfg sunt vro 200 masini
  6. [19:29:01] rTz has logged in. [19:29:06] [chat] [sMasH]: prb ca nu mai sunt ldier [19:29:09] [chat] [sMasH]: am renuntat [19:29:12] [chat] [sMasH]: am uitat scz [19:29:19] Script[gamemodes/EFL.amx]: During execution of OnPlayerCommandText(): [19:29:19] Script[gamemodes/EFL.amx]: Run time error 5: "Invalid memory access" [19:29:19] Error information: [19:29:19] No details available [19:29:19] Call stack (most recent call first): [19:29:19] The server has crashed due to an unknown error cum pot rezolva asta ?
  7. pai si acum imi scrie asa in server log [19:04:53] Script[gamemodes/EFL.amx]: During execution of OnPlayerStateChange(): [19:04:53] Script[gamemodes/EFL.amx]: Run time error 4: "Array index out of bounds" [19:04:53] Error information: [19:04:53] Array max index is 301 but accessing an element at 401 [19:04:53] Call stack (most recent call first): [19:04:53] 0x???????? => public OnPlayerStateChange() [19:04:53] Script[gamemodes/EFL.amx]: During execution of OnPlayerStateChange(): [19:04:53] Script[gamemodes/EFL.amx]: Run time error 4: "Array index out of bounds" [19:04:53] Error information: [19:04:53] Array max index is 301 but accessing an element at 399 [19:04:53] Call stack (most recent call first): [19:04:53] 0x???????? => public OnPlayerStateChange() [19:04:55] Script[gamemodes/EFL.amx]: During execution of OnPlayerCommandText(): [19:04:55] Script[gamemodes/EFL.amx]: Run time error 5: "Invalid memory access" [19:04:55] Error information: [19:04:55] No details available [19:04:55] Call stack (most recent call first): [19:04:55] The server has crashed due to an unknown error
  8. Citeste mai bine cand il compilez nu da nici un fel de eroare apoi bag gm-ul pe sv, si observ ca el cade din 10 in 10 minute (aproximativ) si erorile nu apar in server_log.txt
  9. Deci am avut un GM pe 0.3c, a mers de minune , fara buguri si etc acum cand l-am facut pe 0.3d nu a dat erori la compilare dar tot cade din 10 in 10 min :| si in server.log nu scrie nici o eroare ...... in server nu am degat plugnil streamer.so , si e ultima versiune 2.6 ...... ceva ajutor ?
  10. Deci am un GameMod si care acum ruleaza pe un server 0.3d inainte cand il aveam pe 0.3c mergea perfect acum cand lam pus pe 0.3d se inchide din 10 in 10 minute care ma poate ajuta ?
  11. Care ma puteti ajuta si pe mie sa fac ca pe serverul asta ? HostName: B-Zone: RPG Server (0.3d) Address: 93.115.207.238:7777 Players: 372 / 498 Ping: 27 Mode: RO-RP v4.1b - RPG Map: LS and LV Cand intri pe SV inainte sa te loghezi , icepe sa cante o melodie, si anume asta http://samp.dreamservers.ro/music/The%20Godfather%20Theme.mp3 va multumesc :)
  12. Nu se vede nici un player pe gps-ul ala din stanga jos :(
  13. Am adaugat ShowPlayerMarkers(1); dupa OnGameModeInit public OnGameModeInit() { ShowPlayerMarkers(1); new string[MAX_PLAYER_NAME]; new string1[MAX_PLAYER_NAME]; for(new c=0;c<CAR_AMOUNT;c++) { Gas[c] = GasMax; } Ceas0 = TextDrawCreate(549.000000, 20.000000, "--"); TextDrawBackgroundColor(Ceas0, -255); TextDrawFont(Ceas0, 3); TextDrawLetterSize(Ceas0, 0.5, 1.5); TextDrawColor(Ceas0, 0xD93826FF); TextDrawSetOutline(Ceas0, 1); TextDrawSetProportional(Ceas0, 1); TextDrawSetShadow(Ceas0, 1); Ceas1 = TextDrawCreate(575.000000, 20.000000, "--"); TextDrawBackgroundColor(Ceas1, -255); TextDrawFont(Ceas1, 3); TextDrawLetterSize(Ceas1, 0.5, 1.5); TextDrawColor(Ceas1, 0xE6E600FF); TextDrawSetOutline(Ceas1, 1); TextDrawSetProportional(Ceas1, 1); TextDrawSetShadow(Ceas1, 1); si nu merge :| din cate am mai vazut mai sunt probleme si la culori (din unele topicuri) eu am asa #define MAX_STRING 255 #define SKIN 1337 #define CHECKPOINT_NONE 0 #define COLOR_ASKQ 0xFF0000FF #define COLOR_BODY 0xFDE39DAA #define COLOR_SYSTEM 0xB2EBE0AA #define CHECKPOINT_HOME 12 #define COLOR_SCRIPTER 0x4682B4FF #define COLOR_AFK 0xAFAFAFAA #define COLOR_GRAD1 0xB4B5B7FF #define COLOR_GRAD2 0xBFC0C2FF #define COLOR_GRAD3 0xCBCCCEFF #define COLOR_GRAD4 0xD8D8D8FF #define COLOR_GRAD5 0xE3E3E3FF #define COLOR_GRAD6 0xF0F0F0FF #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x008000FF #define COLOR_GROVE 0x00FF00FF #define COLOR_RED 0xAA3333AA #define COLOR_LIGHTRED 0xFF6347AA #define COLOR_ACHAT 0x7499FAFF #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_LIGHTGREEN 0x9ACD32AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_YELLOW2 0xF5DEB3AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_FADE1 0xE6E6E6E6 #define COLOR_FADE2 0xC8C8C8C8 #define COLOR_FADE3 0xAAAAAAAA #define COLOR_FADE4 0x8C8C8C8C #define COLOR_FADE5 0x6E6E6E6E #define COLOR_PURPLE 0xC2A2DAAA #define COLOR_DBLUE 0x2641FEAA #define COLOR_ALLDEPT 0xFF8282AA #define COLOR_NEWS 0xEFC6FFFF //#define COLOR_OOC 0xE0FFFFAA #define COLOR_OOC 0xB1C8FBAA #define COLOR_ORANGE 0xFF9900AA #define TEAM_CYAN 1 #define TEAM_BLUE 2 #define TEAM_GREEN 3 #define TEAM_ORANGE 4 #define TEAM_COR 5 #define TEAM_BAR 6 #define TEAM_TAT 7 #define TEAM_CUN 8 #define TEAM_STR 9 #define TEAM_HIT 10 #define TEAM_ADMIN 11 #define TEAM_AZTECAS_COLOR 0x01FCFFC8 #define OBJECTIVE_COLOR 0x64000064 #define TEAM_GREEN_COLOR 0xFFFFFFAA #define TEAM_JOB_COLOR 0xFFB6C1AA #define TEAM_HIT_COLOR 0xFFFFFF00 #define TEAM_BLUE_COLOR 0x8D8DFF00 #define TEAM_RADIO_COLOR 0xF2D068FF #define COLOR_ADD 0x63FF60AA #define TEAM_GROVE_COLOR 0x00D900C8 #define TEAM_VAGOS_COLOR 0xFFC801C8 #define TEAM_BALLAS_COLOR 0xD900D3C8 #define TEAM_AZTECAS_COLOR 0x01FCFFC8 #define TEAM_CYAN_COLOR 0xFF8282AA #define TEAM_ORANGE_COLOR 0xFF830000 #define TEAM_COR_COLOR 0x39393900 #define TEAM_BAR_COLOR 0x00D90000 #define TEAM_TAT_COLOR 0xBDCB9200 #define TEAM_CUN_COLOR 0xD900D300 #define TEAM_STR_COLOR 0x01FCFF00 #define TEAM_ADMIN_COLOR 0x00808000 #define COLOR_INVIS 0xAFAFAF00 #define COLOR_SPEC 0xBFC0C200 #pragma tabsize 0 #define COLOR_SI 0x03FCFCFF #define COLOR_PATERNO 0xFF00D995 #define COLOR_TATTAGLIA 0xFF9700DE #define COLOR_STRACCI 0x8C4C05C0 #define COLOR_BARZINI 0x57CC13ED #define COLOR_HITMAN 0xA5443BF3 #define COLOR_MAYOR 0xB3F856FF #define COLOR_MAFIA 0x000000FF #define COLOR_CUNEO 0x00928628 #define COLOR_CORLEONE 0x4F4F4FFF #define COLOR_MEDIC 0xFF6347AA #define COLOR_PD 0x2641FEAA #define COLOR_FBI 0x0615C6FF #define COLOR_NG 0x1E519DAA #define COLOR_AOD 0xA3F803FF #define COLOR_CLAN 0xB04F87FF #define COLOR_1BLUE 0x0080FFFF #define COLOR_1GREEN 0x6BD700FF #define COLOR_1RED 0xFF5B5BFF #define COLOR_FlamingCobras 0x542C2CFF #define COLOR_ColomboFamiglia 0x8000FFFF #define COLOR_YAMAGUCHI 0x808000FF #define COLOR_BLUE 0x2641FEAA #define COLOR_DARKNICERED 0x9D000096 #define COLOR_LIGHT_BLUE 0x9FB1EEAA #define SCM SendClientMessage #define PTP PlayerToPoint #define DIALOG_STYLES 0 #define ResetMoneyBar ResetPlayerMoney #define UpdateMoneyBar GivePlayerMoney #define MAPICON_LOCAL 0 // displays in the player's local area #define MAPICON_GLOBAL 1 // displays always #define MAPICON_LOCAL_CHECKPOINT 2 // displays in the player's local area and has a checkpoint marker #define MAPICON_GLOBAL_CHECKPOINT 3 // displays always and has a checkpoint marker #define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9) #define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1) #define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1) #define VEHICLE_PARAMS_UNSET -1 #define VEHICLE_PARAMS_OFF 0 #define VEHICLE_PARAMS_ON 1 #define SLOT 1 #define KEY_ANALOG_UP (2048) #define KEY_ANALOG_DOWN (4096) #define KEY_ANALOG_RIGHT (16384) #define KEY_ANALOG_LEFT (8192) #define CashboxModel 1210 // Briefcase-model #define MinCashboxValue 5000 #define MaxCashboxValue 10000 #define ValuedropPerSecond 8 #define DifficultyMode 2 am cautat si am mai gasit si asta SetPDistance(10); EnableTirePopping(1); EnableZoneNames(1); AllowInteriorWeapons(1); AllowAdminTeleport(0); UsePlayerPedAnims(); //unique walking //ShowPlayerMarkers(false); DisableInteriorEnterExits(); EnableStuntBonusForAll(0); Vedeti vreo rezolvare ceva ?
  14. Am si eu acest vitezometru http://pastebin.com/Cy63Fwc6 masina porneste numai daca scriu "engine on" as vrea daca puteti sal modificati in asa fel incat masina sa porneasca pe tasta W multumesc mult
×
×
  • 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.