Jump to content

rymezic

Membru
  • Posts

    25
  • Joined

  • Last visited

    Never

Everything posted by rymezic

  1. rymezic

    Error 010

    Da am pus obiectele!
  2. rymezic

    Error 010

    Am pus acolada dar tot la fel (
  3. Inchide PAWNO si pune includele in includes-pawno si dai COMPILE http://forum.sa-mp.com/showthread.php?t=164557
  4. Iti lipseste un plugin ia asta si bagal Langa Streamer http://forum.sa-mp.com/showthread.php?t=56564
  5. rymezic

    Error 010

    Chiar nu stie nimeni? (
  6. rymezic

    Error 010

    Am nevoie de ajutor imi da erroare la porti Portile: [pawn] if ((newkeys==KEY_CROUCH )) { if(IsPlayerInAnyVehicle(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 4.0, 60.9393, -1537.5494, 5.0439)) { if(GetPlayerMoney(playerid) < 100 ) return SendClientMessage(playerid, RED, "Nu ai destui bani pentru a Trece"); MoveObject(vama2,67.909485, -1541.125732, -0.773268, 5.5); SetTimer("GateClose", 3000, 0); SendClientMessage(playerid, COLOR_BLUE,"Ai platit Vama 100$! In 3 secunde Vama se va inchide"); GivePlayerMoney(playerid,-100); } if(IsPlayerInRangeOfPoint(playerid, 4.0, 72.7169, -1530.9346, 4.9929)) { if(GetPlayerMoney(playerid) < 100 ) return SendClientMessage(playerid, RED, "Nu ai destui bani pentru a Trece"); MoveObject(vama1,68.328880, -1526.939087, -0.809014, 5.5); SetTimer("GateClose", 2000, 0); SendClientMessage(playerid, COLOR_BLUE,"Ai platit Vama 100$! In 5 secunde Vama se va inchide"); GivePlayerMoney(playerid,-100); } if((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 1588.2966,-1637.8121,13.4255)) { MoveObject(PDGATE,1597.846802, -1638.088257, 14.655367,1); SetTimer("PDGATECLOSE", 10000, false); } if((IsACop(playerid)) && PlayerToPoint(15.0, playerid,1541.10, -1627.70, 15.20)) { MoveObject(barrier, 1541.7656, -1616.2527, 15.2000,1); SetTimer("lspdgate", 10000, false); } if((IsACop(playerid)) && PlayerToPoint(15.0, playerid, -1572.2012, 658.8007, 6.8812)) { SetObjectRot(fbibarrier, 0, 0, 90); SetTimer("outfbibarrier", 6000, false); } if((IsACop(playerid)) && PlayerToPoint(15.0, playerid, -1701.4327, 687.5764, 24.6882)) { SetObjectRot(fbibarriertwo, 0, 0, 90); SetTimer("outfbibarriertwo", 6000, false); } if((IsACop(playerid)) && PlayerToPoint(15.0, playerid, -1631.5826, 688.1768, 8.7092)) { MoveObject(fbigate, -1631.5826, 688.1768, 12.7092,1); SetTimer("outfbigate", 10000, false); } if((IsACop(playerid)) && PlayerToPoint(15.0, playerid, -1526.4384, 481.3883, 6.9296)) { SetObjectRot(barrierng, 0, 0, 0); SetTimer("outbarrierng", 6000, false); } if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 && PlayerToPoint(15.0, playerid, -1465.870,501.579,1.448)) { MoveObject(carriergate, -1465.870,501.579,11.448,1); SetTimer("outcarriergate", 10000, false); } if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9 && PlayerToPoint(15.0, playerid, -2017.0000, 493.9958, 34.8718)) { SetObjectRot(barriernr, 0, 0, 0); SetTimer("outbarriernr", 6000, false); } if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 && PlayerToPoint(15.0, playerid, 1023.50000000,-369.50000000,75.80000305)) { SetObjectRot(hitgate, 0, 269, 270); SetTimer("outhitgate", 6000, false); SendClientMessage(playerid, 0xF5ED8396, "Ai deschis bariera pentru 6 secunde !"); } if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9 && PlayerToPoint(15.0, playerid, 781.4194, -1330.3007, 13.2519)) { SetObjectRot(barriernr2, 0, 0, 0); SetTimer("outbarriernr2", 6000, false); } if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9 && PlayerToPoint(15.0, playerid, 781.4983, -1384.7987, 13.4267)) { SetObjectRot(barriernr3, 0, 0, 0); SetTimer("outbarriernr3", 6000, false); } if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 && PlayerToPoint(15.0, playerid, -2796.1999511719,-330.10000610352,8.8000001907349)) { MoveObject(kosgate, -2795.8232, -318.7477, 8.8000); SetTimer("kosgateclose", 6000, false); } if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 && PlayerToPoint(15.0, playerid, -2043.6647, -80.4956, 34.8794)) { SetObjectRot(sibarrier, 0, 0, 0); SetTimer("outsibarrier", 6000, false); } } return 1; } return 1; }[/pawn] Errorile: [pawn]error 010: invalid function or declaration (38596) : error 010: invalid function or declaration (38598) : error 010: invalid function or declaration (38600) : error 010: invalid function or declaration (38606) : error 010: invalid function or declaration (38608) : error 010: invalid function or declaration (38614) : error 010: invalid function or declaration (38619) : error 010: invalid function or declaration (38624) : error 010: invalid function or declaration (38629) : error 010: invalid function or declaration (38634) : error 010: invalid function or declaration (38639) : error 010: invalid function or declaration (38644) : error 010: invalid function or declaration (38649) : error 010: invalid function or declaration (38654) : error 010: invalid function or declaration (38660) : error 010: invalid function or declaration (38665) : error 010: invalid function or declaration (38670) : error 010: invalid function or declaration (38675) : error 010: invalid function or declaration (38681) : error 010: invalid function or declaration (38683) : error 010: invalid function or declaration[/pawn] Help urgent Ms mult!
  7. rymezic

    UnLock

    Salut am si eu o problema am la factiunea TCC eu am garaj cu enter exit car dar masinile daca sunt blocate nu merg bagate in garaj. Eu vreau ca doar membri tcc sa le mearga sa deblocheze masinille si nush cum am un sistem de /unlock poate ma ajutati sal fac sa deblocheze masinile. DOAR TCC [pawn]if (strcmp(cmdtext, "/unlock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,0xFFFF00AA,"You can only lock the doors as the driver."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0); } SendClientMessage(playerid, 0xFFFF00AA, "Vehicle unlocked!"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1057,pX,pY,pZ); locked[playerid][GetPlayerVehicleID(playerid)] = 0; }[/pawn]
  8. Am aflat care este problema este de la 0.3d ms mult dar Swet ai vb cand ar trb sa taci! T.C
  9. Oameni buni am o problema cu poarta de la pd cand apas sa se deschida se intoarce la jumate!Va rog help! Poarta Linii [pawn] barrier = CreateObject(980,1541.6999511719,-1627.5999755859,15.199999809265,0,0,90);[/pawn] Poarta Linii 2 [pawn]public PDGATECLOSE() { MoveObject(PDGATE, 1590.3316, -1638.0882, 14.6553,2); return 1; }[/pawn] Poarta Linii 3 [pawn] if((IsACop(playerid)) && PlayerToPoint(15.0, playerid,1541.10, -1627.70, 15.20)) { MoveObject(barrier, 1541.10, -1627.70, 15.2000,1); SetTimer("pdGate", 6000, false); }[/pawn] Poza! Dupa ce am apasat sa se deschida uitativa ! [img width=500 height=378]http://img716.imageshack.us/img716/3005/dumaceamapasath.png Astept raspunsuri urgente!Multumesc!
  10. Fratilor ma ajutati si pe mine ?Please help!Ms mult!
  11. Man faza asta nu mi se intampla numai mie se intapla la mai multi dar am sa incerc cu pickupurile!MS
  12. E mai greu de facut comanda dar ati recomand /fixveh!
  13. Frate vrei sa pui comanda /nos pui comanda asta dedesuptul la /fixveh [pawn] if(strcmp(cmdtext, "/nos", true) == 0) { if(PlayerInfo[playerid][pAdmin] < 7) { SendClientMessage(playerid, COLOR_WHITE, "You don't have acces to this command"); return 1; } if(IsPlayerInInvalidNosVehicle(playerid,GetPlayerVehicleID(playerid))) { SendClientMessage(playerid, 0xFF0000, "You don't acces to add nos at this vehicle"); } else { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); //add Nitro SendClientMessage(playerid, 0xFFFF66, "Your car have NITRO OXIDE (press ctrl to use) (( DON'T ABUSE THIS ))"); GetPlayerName(playerid, sendername, sizeof(sendername)); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] AdmWarning: Admin %s Add Nos On Vehicle.",d,m,y,h,mi,s,sendername); ABroadCast(COLOR_YELLOW,string,1); } return 1; }[/pawn] Nare cum sa nuti mearga! ATENTIE aceasta comanda este pentru rp daca vrei pentru stunt modifici [pawn]if(PlayerInfo[playerid][pAdmin] < 7)[/pawn] cu [pawn]if(PlayerInfo[playerid][pAdmin] < 0)[/pawn]
  14. Fratilor va rog ajutor cand dau pe server la mine /gotobank cand ma duc in locu ala de langa skate park!Please Help! Bank: Langa SkatePark: [img width=500 height=378]http://img641.imageshack.us/img641/5761/skatepark.png [glow=red,2,300]Va rog help!Multumesc![/glow]
  15. Esti tare Tzaks dar mai e o problema X_X [pawn]D:\GM Scripturi SAMP\Game Moduri San Andreas\Black-Zone rp\gamemodes\ClanWarGf.pwn(622) : error 001: expected token: ";", but found "(" D:\GM Scripturi SAMP\Game Moduri San Andreas\Black-Zone rp\gamemodes\ClanWarGf.pwn(9363) : error 029: invalid expression, assumed zero D:\GM Scripturi SAMP\Game Moduri San Andreas\Black-Zone rp\gamemodes\ClanWarGf.pwn(9364) : error 001: expected token: ";", but found "{"[/pawn] Tu nu crezi cam incercat si cu si fara :|
  16. Vreau sa bag si eu carownershipu pe server la mine dar cand dau compile ami da urmatoarele errori!Va rog help! [pawn]D:\GM Scripturi SAMP\Game Moduri San Andreas\Black-Zone rp\gamemodes\Black-ZoneRp.pwn(9363) : error 029: invalid expression, assumed zero[/pawn] La asta [pawn] public OnGameModeExit(); { SendRconCommand("unloadfs carownership"); return 1; }[/pawn] Astept Raspunsuri!
  17. rymezic

    Salut

    Frate ce sati zic cauta si tu pe google vezi poate gasesti ceva Bafta!
  18. frate /save stiu dar la poarta nu e cu /save e mai greu umpic cu coordonatele [glow=red,2,300]Green Zone 4Ever[/glow]
  19. Fratilor ajutatima din nou iar am probleme cu portile ca vreau sa ma ajutati cu X Y Z nu inteleg cum le fac Astea sunt portile va rog explicatimi si mie cum selectez Selectiile X Y Z [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=vla gate 1=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= if((newkeys==KEY_CROUCH)) { if(PlayerToPoint(12.0,playerid,785.649902, -1152.460693, 25.356531)) { if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { if ((!adds)) {return 1;} SetTimer("AddsOn10", addtimer36, 0);adds = 0; MoveObject(vlagate1, 785.649902, -1152.460693, 19.731617, 2.5); SCM(playerid, WHITE, "The gate is now open and will be closed in 10 seconds "); SetTimer("closevla1gate",10000,0); } } } //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=vla gate 2 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= if((newkeys==KEY_CROUCH)) { if(PlayerToPoint(12.0,playerid,659.603088, -1227.209961, 16.850601)) { if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { if ((!adds)) {return 1;} SetTimer("AddsOn10", addtimer36, 0);adds = 0; MoveObject(vlagate2, 659.603088, -1227.209961, 12.200672, 2.5); SCM(playerid, WHITE, "The gate is now open and will be closed in 10 seconds "); SetTimer("closevla2gate",10000,0); } } } //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=vla gate 3=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= if((newkeys==KEY_CROUCH)) { if(PlayerToPoint(12.0,playerid,664.933777, -1309.334961, 15.234329)) { if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { if ((!adds)) {return 1;} SetTimer("AddsOn10", addtimer36, 0);adds = 0; MoveObject(vlagate3, 664.933777, -1309.334961, 9.609415, 2.5); SCM(playerid, WHITE, "The gate is now open and will be closed in 10 seconds "); SetTimer("closevla3gate",10000,0); } } }[/pawn] Si astea sunt obiectele. [pawn] vlagate1 = CreateDynamicObject(980, 785.649902, -1152.460693, 25.356531, 0.0000, 0.0000, 90.0000); vlagate2 = CreateDynamicObject(980, 659.603088, -1227.209961, 16.850601, 0.0000, 0.0000, 243.2028); vlagate3 = CreateDynamicObject(980, 664.933777, -1309.334961, 15.234329, 0.0000, 0.0000, 0.0000);[/pawn]
  20. rymezic

    MoveObject

    Leon Mersi dar cum leai selectat explicami si mie!
  21. Fratilor am si eu o problema incerc sa fac o poarta am facut totul dar nu stiu cum sa pun Pozitiile X Y Z ! Scripul vine cam asa [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=SrM gate=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= if((newkeys==KEY_CROUCH)) { if(PlayerToPoint(12.0,playerid,-2433.30004883, 495.10000610, 31.70000076)) { if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { if ((!adds)) {return 1;} SetTimer("AddsOn10", addtimer36, 0);adds = 0; MoveObject(srmgate, -2433.30004883, 495.10000610, 31.70000076, 2); SCM(playerid, WHITE, "The gate is now open and will be closed in 4 seconds "); SetTimer("closesrmgate",4000,0); } } }[/pawn] Cum pun astea va rog explicatimi si mie [pawn]if(PlayerToPoint(12.0,playerid,-2433.30004883, 495.10000610, 31.70000076))[/pawn] [pawn]MoveObject(srmgate, -2433.30004883, 495.10000610, 31.70000076, 2);[/pawn] Obiectul adica poarta este asta! [pawn]srmgate = CreateObject(980,-2433.30004883,495.10000610,31.70000076,0.00000000,0.00000000,204.00000000);[/pawn] Astept Raspunsuri!
  22. Eu am incercat sa pun comanda /v am reparat cateva erori dar miau ramas astea 4 [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnPlayerCommandText=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= public OnPlayerCommandText(playerid, cmdtext[]) { new string[256]; new playermoney; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; new cmd[256]; new tmp[256]; new giveplayerid, moneys, idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SCM(playerid, COLOR_GREY, " You need to login first ! "); return 1; } new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SCM(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SCM(playerid, COLOR_WHITE, "Available names: buy ,park, lock, sell, sellto, color, tow, locate, plate, tunning, paintjob"); return 1; } else if(strcmp(x_nr,"buy",true) == 0) { new idcar = GetPlayerVehicleID(playerid); if(IsAnOwnableCar(idcar)) { if(PlayerInfo[playerid][pPcarkey] == 999) { } else { SCM(playerid, COLOR_GREY, " You already own a vehicles"); return 1; } if(CarInfo[idcar][cOwned]==1) { SCM(playerid, COLOR_GREY, "Someone already owns this car"); return 1; } if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue]) { if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = idcar; } else { return 1; } CarInfo[idcar][cOwned] = 1; strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999); GivePlayerMoney(playerid,-CarInfo[idcar][cValue]); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3); SCM(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SCM(playerid, COLOR_GRAD2, "Type /vehiclehelp to view the vehicle manual!"); OnCarUpdate(); TogglePlayerControllable(playerid, 1); return 1; } else { SCM(playerid, COLOR_GREY, " You don't have enough cash with you ! "); return 1; } } } if(strcmp(x_nr,"sell",true) == 0) { if(IsAtDealership(playerid)) { if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { new ownvehkey; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; } else { return 1; } if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0) { new carsellprice = CarInfo[ownvehkey][cValue] / 4 * 3; new Float:x,Float:y,Float:z; new Float:a; CarInfo[ownvehkey][cOwned] = 0; strmid(CarInfo[ownvehkey][cOwner], "Dealership", 0, strlen("Dealership"), 999); GivePlayerMoney(playerid,carsellprice); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~You have sold your car for: ~n~~g~$%d", carsellprice); GameTextForPlayer(playerid, string, 10000, 3); GetVehiclePos(ownvehkey, x, y, z); GetVehicleZAngle(ownvehkey, a); CarInfo[ownvehkey][cLocationx] = x; CarInfo[ownvehkey][cLocationy] = y; CarInfo[ownvehkey][cLocationz] = z; CarInfo[ownvehkey][cAngle] = a; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { PlayerInfo[playerid][pPcarkey] = 999; } RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); if(PlayerInfo[playerid][pLocal] == ownvehkey) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]); PlayerInfo[playerid][pInt] = 0; } OnCarUpdate(); DestroyVehicle(ownvehkey); ownedcar[ownvehkey] = CreateVehicle(CarInfo[ownvehkey][cModel],CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]+1.0,CarInfo[ownvehkey][cAngle],CarInfo[ownvehkey][cColorOne],CarInfo[ownvehkey][cColorTwo],60000); return 1; } } else { SCM(playerid, COLOR_GREY, " You have to sit at your own car to sell it! "); return 1; } } else { SCM(playerid, COLOR_GREY, "You are not at a dealership"); return 1; } } else if(strcmp(x_nr,"tunning",true) == 0) { new carsff; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carsff = PlayerInfo[playerid][pPcarkey]; } if (carsff != 999) { if(IsPlayerInVehicle(playerid, carsff)) { new info[] = "Save Car Mods\nSave All Car Mods\nClear Car Mods\nClear All Car Mods "; ShowPlayerDialog(playerid, 1300, DIALOG_STYLE_LIST,"Choose the Option",info,"Ok","Cancel"); SendClientMessage(playerid, COLOR_PINK,"* To save the vehicle paintjob and colours use /v paintjob and /v color"); SendClientMessage(playerid, COLOR_GRAD1, "* You are not in a setted car."); } else { SendClientMessage(playerid, COLOR_GRAD1, "* You are not in your vehicle!"); } } else { SendClientMessage(playerid, COLOR_GRAD1, "* You do not own a car!"); } } else if(strcmp(x_nr,"paintjob",true) == 0) { if(PlayerInfo[playerid][pPcarkey] == 999) { SendClientMessage(playerid, COLOR_GREY," You don't have a vehicle to respray."); return 1; } if(GetPlayerMoney(playerid) < 5000) { SendClientMessage(playerid, COLOR_GREY," You don't have enough money for vehicle respray."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /v paintjob [paintjob(0-3)]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 3) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } new vehid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { vehid = PlayerInfo[playerid][pPcarkey]; } else { return 1; } if(IsPlayerInVehicle(playerid, vehid)) { CarInfo[vehid][cPaintjob] = color1; GivePlayerMoney(playerid, -5000); GameTextForPlayer(playerid, "~w~Bill for a Paint Respray~n~~r~-$5000", 5000, 1); ChangeVehiclePaintjob(vehid, color1); OnCarUpdate(); return 1; } else { SendClientMessage(playerid, COLOR_GREY," You are not in your vehicle."); return 1; } } else if(strcmp(x_nr,"sellto",true) == 0) { if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { new ownvehkey; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; } else { return 1; } if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]"); return 1; } giveplayerid = ReturnUser(tmp), GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[giveplayerid][pPcarkey] == 999) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]"); return 1; } new price; price = strval(tmp); if(price < 1 || price > 1500000) { SCM(playerid, COLOR_GREY, " Price not lower then 1 and not higher then 1500000. "); return 1; } format(string, sizeof(string), "* You offerd %s to buy your car for $%d .", giveplayer, price); SCM(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Car Owner %s offered you to buy his/her car for $%d (type /accept ownablecar) to buy.", playername, price); SCM(giveplayerid, COLOR_WHITE, string); OwnableCarOffer[giveplayerid] = playerid; OwnableCarID[giveplayerid] = ownvehkey; OwnableCarPrice[giveplayerid] = price; return 1; } else { SCM(playerid, COLOR_GREY, "That player already have a car! "); return 1; } } else { SCM(playerid, COLOR_GREY, " Player is not near you ! "); return 1; } } } } else { SCM(playerid, COLOR_GREY, " This is not your car"); return 1; } } else { SCM(playerid, COLOR_GREY, " You have to sit at your own car to sell it"); return 1; } } else if(strcmp(x_nr,"tow",true) == 0) { if(IsPlayerConnected(playerid)) { new car1 = PlayerInfo[playerid][pPcarkey]; if (car1 != 999 && strcmp(playername, CarInfo[PlayerInfo[playerid][pPcarkey]][cOwner], true) == 0) { if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { SCM(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } if(SBizzInfo[8][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } if(CarTow(car1)) { GameTextForPlayer(playerid, "~w~Car~n~~g~Towed~n~~r~$-10000", 5000, 1); GivePlayerMoney(playerid,-10000); SetVehicleToRespawn(car1); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SBizzInfo[8][sbTill] += 10000;//towcar buisness ExtortionSBiz(8, 10000); SBizzInfo[8][sbProducts]--; } else { GameTextForPlayer(playerid, "~w~Car is~n~in ~r~use", 5000, 1); } } else { GameTextForPlayer(playerid, "~w~You are not a car owner", 5000, 1); } } } else if(strcmp(x_nr,"locate",true) == 0) { if(!IsPlayerConnected(playerid)) { return 1; } if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { SCM(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } new Float:x,Float:y,Float:z; new car1 = PlayerInfo[playerid][pPcarkey]; if(PlayerInfo[playerid][pPcarkey]==999) { GameTextForPlayer(playerid, "~w~You do not have a car to locate", 2500, 3); return 1; } SCM(playerid,COLOR_WHITE,"Car spawn location is red on a map"); GetVehiclePos(car1, x, y, z); SetPlayerCheckpoint(playerid, x, y, z, 6); CP[playerid] = 987; return 1; } else if(strcmp(x_nr,"park",true) == 0) { new Float:x,Float:y,Float:z; new Float:a; new carid1; new getcarid1; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid1 = PlayerInfo[playerid][pPcarkey]; } else { return 1; } getcarid1 = GetPlayerVehicleID(playerid); GetVehiclePos(carid1, x, y, z); //GetPlayerFacingAngle(playerid, a); GetVehicleZAngle(carid1, a); if(IsPlayerInVehicle(playerid,carid1) && CarInfo[carid1][cOwned] == 1) { if(PlayerInfo[playerid][pPcarkey] == 999) { SCM(playerid, COLOR_GREY, "You don't own a car."); return 1; } if(getcarid1 == carid1) { CarInfo[carid1][cLocationx] = x; CarInfo[carid1][cLocationy] = y; CarInfo[carid1][cLocationz] = z; CarInfo[carid1][cAngle] = a; format(string, sizeof(string), "~n~ You have parked your vehicle in this location. ~n~"); GameTextForPlayer(playerid, "You have parked your vehicle in this position. It will respawn here.", 10000, 3); OnCarUpdate(); DestroyVehicle(carid1); ownedcar[carid1] = CreateVehicle(CarInfo[carid1][cModel],CarInfo[carid1][cLocationx],CarInfo[carid1][cLocationy],CarInfo[carid1][cLocationz],CarInfo[carid1][cAngle],CarInfo[carid1][cColorOne],CarInfo[carid1][cColorTwo],60000); SetVehicleNumberPlate(getcarid1,CarInfo[carid1][cLicense]); if(CarInfo[carid1][cPaintjob] != 255) { ChangeVehiclePaintjob(carid1, CarInfo[carid1][cPaintjob]); } SetVehicleVirtualWorld(carid1, CarInfo[carid1][cVirWorld]); SetVehicleModifications(carid1); PutPlayerInVehicle(playerid, carid1, 0); TogglePlayerControllable(playerid, 1); return 1; } } } else if(strcmp(x_nr,"lock",true) == 0) { new keycar = PlayerInfo[playerid][pPcarkey]; if(keycar != 999) { new locked[256]; locked = strtok(cmdtext, idx); new Float:X,Float:Y,Float:Z; GetVehiclePos(keycar,X,Y,Z); if(CarInfo[keycar][cLock] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,0); } } format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 0; OnCarUpdate(); return 1; } else if(CarInfo[keycar][cLock] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,1); } } format(string, sizeof(string), "~w~Vehicle~n~~r~Locked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 1; OnCarUpdate(); return 1; } } else { SCM(playerid, COLOR_GREY, " You don't have a vehicle at slot 1"); return 1; } } else if(strcmp(x_nr,"color",true) == 0) { if(PlayerInfo[playerid][pPcarkey] == 999) { SCM(playerid, COLOR_GREY," You don't have a vehicle to respray."); return 1; } if(GetPlayerMoney(playerid) < 1000) { SCM(playerid, COLOR_GREY," You don't have enough money for vehicle respray."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "{00FF00}Usage:{FFFFFF} /v color [ColorOneID] [ColorTwoID]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SCM(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "{00FF00}Usage:{FFFFFF} /v color [ColorOneID] [ColorTwoID]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SCM(playerid, COLOR_GREY, " Wrong color id!"); return 1; } new vehid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { vehid = PlayerInfo[playerid][pPcarkey]; } else { return 1; } if(IsPlayerInVehicle(playerid, vehid)) { CarInfo[vehid][cColorOne] = color1; CarInfo[vehid][cColorTwo] = color2; GivePlayerMoney(playerid, -1000); GameTextForPlayer(playerid, "~w~Bill for a Paint Respray~n~~r~-$1000", 5000, 1); ChangeVehicleColor(vehid, color1, color2); OnCarUpdate(); return 1; } else { SCM(playerid, COLOR_GREY," You are not in your vehicle."); return 1; } } else if(strcmp(x_nr,"plate",true) == 0) { if(PlayerInfo[playerid][pPcarkey] == 999) { SCM(playerid, COLOR_GREY," You don't have a vehicle to respray."); return 1; } if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { new Float:x,Float:y,Float:z,Float:ang; GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z); GetVehicleZAngle(GetPlayerVehicleID(playerid),ang); if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_RED,"You're not in a vehicle!"); ShowPlayerDialog(playerid,171,DIALOG_STYLE_INPUT,"{EE7777}Vehicle Numberplate","{00CC66}Input your new vehicle numberplate below.","Yes","Cancel"); return 1; } else { SCM(playerid, COLOR_GREY, " You are not in you're personal car!"); return 1; } } else { SCM(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SCM(playerid, COLOR_WHITE, "Available names: park, lock, sell, sellto, color, tow, locate, plate"); return 1; } } return 1; } if(!strcmp(cmdtext, "/asellcar", true)) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SCM(playerid, COLOR_GREY, " You need to login first !"); return 1; } if(PlayerInfo[playerid][pAdmin] >= 1339) { if(IsPlayerInAnyVehicle(playerid)) { new vehid = GetPlayerVehicleID(playerid); new Float:x,Float:y,Float:z; new Float:a; CarInfo[vehid][cOwned] = 0; strmid(CarInfo[vehid][cOwner], "Dealership", 0, strlen("Dealership"), 999); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); GameTextForPlayer(playerid, "~w~You have admin sold the vehicle", 10000, 3); GetVehiclePos(vehid, x, y, z); GetVehicleZAngle(vehid, a); CarInfo[vehid][cLocationx] = x; CarInfo[vehid][cLocationy] = y; CarInfo[vehid][cLocationz] = z; CarInfo[vehid][cAngle] = a; RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); OnCarUpdate(); DestroyVehicle(vehid); ownedcar[vehid] = CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],CarInfo[vehid][cColorOne],CarInfo[vehid][cColorTwo],60000); SetVehicleToRespawn(vehid); return 1; } else { SCM(playerid, COLOR_GREY, "Tu nu esti intr-o masina !"); return 1; } } else { SCM(playerid, COLOR_GREY, " You're not authorized to use that command !"); return 1; } } return 1; }[/pawn] Am incercat sa pun cum miai zis tu dar nu merge tot asa spune!
  23. Am un gm am editat si tot am editat si ami da 4 erori care nu le pot repara va rog ajutatima!Acestea sunt errorile [pawn]C:\Users\Dreamer\Desktop\[RO]~Arad-Community~[RO]\gamemodes\*****.pwn(10789) : error 012: invalid function call, not a valid address C:\Users\Dreamer\Desktop\[RO]~Arad-Community~[RO]\gamemodes\*****.pwn(10789) : warning 215: expression has no effect C:\Users\Dreamer\Desktop\[RO]~Arad-Community~[RO]\gamemodes\*****f.pwn(10789) : error 001: expected token: ";", but found ")" C:\Users\Dreamer\Desktop\[RO]~Arad-Community~[RO]\gamemodes\*****.pwn(10789) : error 029: invalid expression, assumed zero C:\Users\Dreamer\Desktop\[RO]~Arad-Community~[RO]\gamemodes\*****.pwn(10789) : fatal error 107: too many error messages on one line[/pawn] Si asta este linia! [pawn]if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); }[/pawn] Va rog frumos sami spuneti ce sa fac!
  24. Sa stiti ca avatar gaming sa redeschis HostName: Server praf [24/7] Address: undeva:7777 Players: XX / 50 Ping: 1202541 Mode: ---- Map: San Andreas Legacy`s Go :)
×
×
  • 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.