Jump to content

Sprite_RoPlayers

Membru
  • Content Count

    66
  • Joined

  • Last visited

Community Reputation

1 Neutru

About Sprite_RoPlayers

  • Rank
    Membru junior

Profile Information

  • Sex
    Masculin
  • Name in game
    SpriteTV
  • Level of knowledge
    Mediu

Recent Profile Visitors

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

  1. Sprite_RoPlayers

    Problema mesaj la anumit job

    Pai asta este cod-ul pe care il am eu la KEY_YES adica asta este functia de iti ei job-ul if(PlayerInfo[playerid][pJob] == 0){ for(new j = 1; j < MAX_JOBS; j++) { if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti aceasta comanda dintr-un vehicul!"); if(PlayerToPoint(3.0, playerid, JobInfo[j][jPosX], JobInfo[j][jPosY], JobInfo[j][jPosZ]) && j != 7) { if(PlayerInfo[playerid][pLevel] < JobInfo[j][jLevel]) { format(string, sizeof(string), "Ai nevoie de level %d pentru a lua jobul %s.", JobInfo[j][jLevel], JobInfo[j][jName]); SCM(playerid, COLOR_WHITE, string); return 1; } format(string, sizeof(string), "*Felicitari! Noul tau job este acum %s.", JobInfo[j][jName]); SCM(playerid, COLOR_LIGHTBLUE, string); if(j == 7) SCM(playerid, COLOR_LIGHTBLUE, "Comenzile disponibile pentru acest job sunt: /repair si /refill."); else if(j == 8) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a localiza un player, foloseste comanda /find."); else if(j == 11) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa muncesti ai la dispozitie comanda /fish."); else if(j != 6) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa muncesti, ai la dispozitie comanda /work."); else if(j == 16) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament."); //else if(j !- 16) SCM(playerid, COLOR_LIGHTGREEN,"Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament"); PlayerInfo[playerid][pJob] = j; new str [128]; mysql_format(SQL, str, 128, "UPDATE `users` SET `Job`='%d' WHERE `ID`='%d' LIMIT 1",PlayerInfo[playerid][pJob],PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, str, "", ""); } } }
  2. Sprite_RoPlayers

    Problema mesaj la anumit job

    Hai seara buna. Am si eu urmatoare problema si nu stiu cum as putea sa o rezolv. Vreau ca atunci cand dai la un anumit job sa ii apara si comanda de care are nevoie pentru a folosi acel job ca sa inceapa Am facut asa eu else if(j == 16) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament."); Si am incercat si asa else if(j != 16) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament."); asta este tot ce am in gm if(PlayerInfo[playerid][pJob] == 0){ for(new j = 1; j < MAX_JOBS; j++) { if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti aceasta comanda dintr-un vehicul!"); if(PlayerToPoint(3.0, playerid, JobInfo[j][jPosX], JobInfo[j][jPosY], JobInfo[j][jPosZ]) && j != 20) { if(PlayerInfo[playerid][pLevel] < JobInfo[j][jLevel]) { format(string, sizeof(string), "Ai nevoie de level %d pentru a lua jobul %s.", JobInfo[j][jLevel], JobInfo[j][jName]); SCM(playerid, COLOR_WHITE, string); return 1; } format(string, sizeof(string), "*Felicitari! Noul tau job este acum %s.", JobInfo[j][jName]); SCM(playerid, COLOR_LIGHTBLUE, string); if(j == 7) SCM(playerid, COLOR_LIGHTBLUE, "Comenzile disponibile pentru acest job sunt: /repair si /refill."); else if(j == 8) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a localiza un player, foloseste comanda /find."); else if(j == 11) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa muncesti ai la dispozitie comanda /fish."); else if(j != 6) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa muncesti, ai la dispozitie comanda /work."); else if(j == 16) SCM(playerid, COLOR_LIGHTBLUE, "Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament."); //else if(j !- 16) SCM(playerid, COLOR_LIGHTGREEN,"Pentru a incepe sa te antrenenzi, ai la dispozitie comanda /startantrenament"); PlayerInfo[playerid][pJob] = j; new str [128]; mysql_format(SQL, str, 128, "UPDATE `users` SET `Job`='%d' WHERE `ID`='%d' LIMIT 1",PlayerInfo[playerid][pJob],PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, str, "", ""); } } } Dar nu merge ce-ia ce am facut eu si nu stiu cum sa rezolv
  3. Sprite_RoPlayers

    Problema Pornire Gamemode

    Pune toate astea in folder-ul cu servar-ul. de unde il pornesti. http://www.girlshare.ro/3490241228.1 Tu ai eroare la pluginuri. Incearca sa instalezi asta https://www.microsoft.com/en-us/download/details.aspx?id=48145 Sau o versiune mai mare. Eu am aceasta versiune instalata. Ce windows folosesti? Recomand dupa ce ai instalat acel program sa dai si un restart la pc. Edit: sterge servar_log si dupa porneste sv si posteaza aici servar_log
  4. Sprite_RoPlayers

    Problema Pornire Gamemode

    Mai pune inca odata servar_log update-urile de la plugin pe care le-am dat eu
  5. Sprite_RoPlayers

    PizzaBoy

    Dragut elegant cat de cat Nota: 8/10 Pace si iubire acolo
  6. Sprite_RoPlayers

    Problema Pornire Gamemode

    @L3monz Salut ai eroare la plugin-uri vezi sa nu ai in servar.cfg .so la sfarsit de denumire a plugin-ului. Daca nu ai atunci te rog descarca astea http://www.girlshare.ro/3490241227 (plugin-urile cu update la burned pe care le folosesc si eu ) Ti-am mai pus si niste .dll-uri de care o sa ai nevoie acele .dll-uri vin in folder-ul cu servar. https://www.virustotal.com/#/url/a521921b636a13c33e11f4571515c65ce81521e61b9e0e69581e0e68583f2d13/detection Incaz ca nu ai incredere in ce ti-am dat eu. Daca te-am ajutat +1 Pace si iubire acolo man.
  7. Sprite_RoPlayers

    problema debug /startwork

    YCMD:startwork(playerid, params[], help) { if(PlayerInfo[playerid][pJob] == 11) return SCM(playerid, -1, "Foloseste /fish pentru a incepe munca la acest job!"); if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti aceasta comanda dintr-un vehicul!"); new Float: Pos[3], Float: CarAngle, string[128]; if(PlayerInfo[playerid][pJob] == 0) return SCM(playerid, COLOR_GREY, "Nu ai un job!"); if(JobWorking[playerid] == 1) return SCM(playerid, COLOR_WHITE, "Muncesti deja."); GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); if(targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit"); if(GetPlayerVirtualWorld(playerid) != 0) return 1; if(JobDeelay[playerid][PlayerInfo[playerid][pJob]] != 0 && PlayerInfo[playerid][pAdmin] < 6) return JobTimeDeelay(playerid); switch(PlayerInfo[playerid][pJob]) { case 1: { if(PlayerToPoint(7.0, playerid, -372.6979, -1456.3641, 26.4046)) { if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!"); JobSeconds[playerid] = 120; CarAngle = -184.0199; DisablePlayerCheckpointEx(playerid); } else { if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit"); CP[playerid] = 53; SCM(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, -372.6979, -1456.3641, 26.4046, 7.0); return 1; } } case 2: { if(PlayerToPoint(7.0, playerid, -1017.3097,-638.8459,32.0078)) { if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!"); CarAngle = 74.1729; CP[playerid] = 52; DisablePlayerCheckpointEx(playerid); new szDialog2[1024]; strcat(szDialog2, "Category\tType\tSkill\n"); strcat(szDialog2, "Clothes\t{35DE1F}Legal\t1+\n"); strcat(szDialog2, "Food\t{35DE1F}Legal\t1+\n"); strcat(szDialog2, "Furniture\t{35DE1F}Legal\t1+\n"); strcat(szDialog2, "Explosible\t{35DE1F}Legal\t2+\n"); strcat(szDialog2, "Guns\t{F21313}Illegal\t3+\n"); strcat(szDialog2, "Stolen cars\t{F21313}Illegal\t3+\n"); ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_STYLE_TABLIST_HEADERS, "Choose destination", szDialog2, "Select", "Cancel"); } else { if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit"); CP[playerid] = 53; SCM(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, -1017.3097,-638.8459,32.0078, 7.0); return 1; } } case 3: { if(PlayerToPoint(7.0, playerid, -1966.2852,-2442.2708,30.6250)) { if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!"); format(string, sizeof(string), "Du-te la un copac din apropiere si foloseste tasta ~b~~h~LALT~w~~h~ pentru a-l taia."); PlayerTextDrawSetString(playerid, InfosTD, string); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); CarAngle = 222.7997; } else { if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit"); CP[playerid] = 53; SCM(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, -1966.2852,-2442.2708,30.6250, 7.0); return 1; } } case 4: { if(GetPlayerSkill(playerid) == 1) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul public!"); else if(GetPlayerSkill(playerid) == 2) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul personal descuiat!"); else if(GetPlayerSkill(playerid) == 3) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul ce apartine unei mafii!"); else if(GetPlayerSkill(playerid) == 4) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul personal incuiat!"); else if(GetPlayerSkill(playerid) == 5) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul ce apartine unui departament de politie!"); PlayerTextDrawShow(playerid, InfosTD); JobWorking[playerid] = 1; SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); return 1; } case 5: { if(PlayerInfo[playerid][pWantedLevel] != 0) return SCM(playerid, -1, "Nu poti munci la acest job deoarece ai wanted!"); if(!PlayerToPoint(10.0, playerid, 2770.2822,-1610.9043,11.0418)) { SCM(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, 2770.2822,-1610.9043,11.0418, 10.0); CP[playerid] = 53; return 1; } if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!"); CP[playerid] = 156; new rand = random(3); switch(rand) { case 0: SetPlayerCheckpointEx(playerid, 2790.6213,-2523.6418,13.6704, 5.0); case 1: SetPlayerCheckpointEx(playerid, 2529.4214,-2009.4240,13.5798, 5.0); case 2: SetPlayerCheckpointEx(playerid, 2180.0774,-2317.1672,13.5703, 5.0); case 3: SetPlayerCheckpointEx(playerid, 681.2267,-442.6591,16.3633, 5.0); } format(string, sizeof(string), "Du-te la checkpoint-ul de pe mapa pentru a livra materialele!"); PlayerTextDrawSetString(playerid, InfosTD, string); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); CarAngle = 277.2561; StartingWork[playerid] = 0; CurseFacute[playerid] = 0; MoneyEarned[playerid] = 0; } case 6..8: return 1; case 9: { if(PlayerToPoint(7.0, playerid, 2113.9392,-1775.1980,13.3918)) { if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!"); CarAngle = 0; CP[playerid] = 155; new j = random(housess)+1; if(j == 0) j = 1; SetPlayerCheckpointEx(playerid, HouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez], 7.0); format(string, sizeof(string), "Du-te la punctul ~r~~h~rosu~w~~h~ de pe mapa pentru a livra pizza.~n~Distanta: ~y~%0.1fm.", GetPlayerDistanceFromPoint(playerid, HouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez])); PlayerTextDrawSetString(playerid, InfosTD, string); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); } else { if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit"); CP[playerid] = 53; SCM(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid,2113.9392,-1775.1980,13.3918, 7.0); return 1; } } case 10: { if(!PlayerToPoint(6.0, playerid, 844.6592,-601.3264,18.4219)) { SCM(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, 844.6592,-601.3264,18.4219, 6.0); CP[playerid] = 53; return 1; } if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!"); CarAngle = 0.7028; CP[playerid] = 57; new rand = random(3); if(rand == 1) SetPlayerCheckpointEx(playerid, 830.0479, -611.8955, 16.3432, 5.0); else if(rand == 2) SetPlayerCheckpointEx(playerid, 820.7677, -612.4786, 16.3432, 5.0); else if(rand == 3) SetPlayerCheckpointEx(playerid, 790.9538, -612.2801, 16.3432, 5.0); else SetPlayerCheckpointEx(playerid, 830.0479, -611.8955, 16.3432, 5.0); PlayerTextDrawSetString(playerid, InfosTD, "Du-te la punctul ~r~rosu~w~~h~ pentru a incarca coletele!"); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); } case 12: { if(!PlayerToPoint(20.0, playerid, 1947.3197,-2387.1599,13.5469)) { SCM(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, 1947.3197,-2387.1599,13.5469, 20.0); CP[playerid] = 53; return 1; } if(PlayerInfo[playerid][pFlyLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de zbor pentru a putea munci la acest job!"); if(PlayerInfo[playerid][pWantedLevel] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti munci la acest job deoarece ai wanted!"); CP[playerid] = 159; SetPlayerRaceCheckpointEx(playerid, 3, 1897.3568,-2493.9583,14.4609,1337.7225,-2458.1738,52.1955, 5.0); CarAngle = 90.6909; StartingWork[playerid] = 0; CurseFacute[playerid] = 0; MoneyEarned[playerid] = 0; } case 13: { if(!PlayerToPoint(7.0, playerid, 2173.3965,-2265.2837,13.3579)) { SCM(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, 2173.3965,-2265.2837,13.3579, 7.0); CP[playerid] = 53; return 1; } if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!"); PlayerTextDrawSetString(playerid, InfosTD, "Du-te la ~r~~h~checkpoint-ul~w~~h~ de pe mapa pentru a lua marfa!"); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); new rand = random(2); DisablePlayerCheckpointEx(playerid); switch(rand) { case 0: { playerObject[playerid] = CreatePlayerObject(playerid, 1271, 2214.87109, -2287.46167, 14.06371, 0.00000, 0.00000, 45.00000); SetPlayerCheckpointEx(playerid, 2214.87109, -2287.46167, 14.06371, 2.0); } case 1: { playerObject[playerid] = CreatePlayerObject(playerid, 1271, 2237.34399, -2294.11938, 14.08454, 0.00000, 0.00000, 45.00000); SetPlayerCheckpointEx(playerid, 2237.34399, -2294.11938, 14.08454, 2.0); } case 2: { playerObject[playerid] = CreatePlayerObject(playerid, 1271, 2216.74878, -2210.50146, 12.86219, 0.00000, 0.00000, 45.00000); SetPlayerCheckpointEx(playerid, 2216.74878, -2210.50146, 12.86219, 2.0); } } CP[playerid] = 170; UpdateJobStats(playerid); } case 14: { if(!PlayerToPoint(7.0, playerid, 841.5203,854.4805,12.9194)) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Nu poti folosi aceasta comanda atata timp cat esti intr-un vehicul!"); if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de conducere pentru a putea munci la acest job!"); SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, 841.5203,854.4805,12.9194, 7.0); CP[playerid] = 53; return 1; } CP[playerid] = 408; SetPlayerCheckpointEx(playerid, 544.6709,909.9449,-41.5904, 2.0); PlayerTextDrawSetString(playerid, InfosTD, "Du-te la ~r~~h~checkpoint-urile~w~~h~ de pe minimap pentru a incarca ~n~excavatorul cu bolovani!"); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); } case 15: { if(!PlayerToPoint(7.0, playerid, 935.1089,-1119.8901,24.0393)) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Nu poti folosi aceasta comanda atata timp cat esti intr-un vehicul!"); if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de conducere pentru a putea munci la acest job!"); SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SetPlayerCheckpointEx(playerid, 935.1089,-1119.8901,24.0393, 7.0); CP[playerid] = 53; return 1; } CP[playerid] = 500; SetPlayerCheckpointEx(playerid, 1288.5790,-1080.4321,25.8558, 2.0); PlayerTextDrawSetString(playerid, InfosTD, "Urmareste ~r~~h~puncte-le~w~~h~ de pe minimap pentru a ajunge la ~n~Casele de unde trebuie sa iei mortii!"); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); } case 16: { if(!PlayerToPoint(7.0, playerid, 1103.4166,-1655.3750,10.3646)) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Nu poti folosi aceasta comanda atata timp cat esti intr-un vehicul!"); //if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de conducere pentru a putea munci la acest job!"); SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SendClientMessage(playerid, COLOR_GREY, "Intra in stadion pentru a incepe Antrenamentele!"); SetPlayerCheckpointEx(playerid, 1103.4166,-1655.3750,10.3646, 4.0); CP[playerid] = 53; return 1; } CP[playerid] = 600; SetPlayerCheckpointEx(playerid, 1082.3163,-1666.6954,10.3646, 1.0); PlayerTextDrawSetString(playerid, InfosTD, "Urmareste ~r~~h~puncte-le~w~~h~ de pe minimap pentru a termina ~n~Antrenamentele cu nota 10!"); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); } } SetPVarInt(playerid, "Pressed", 0); SetPVarInt(playerid, "Trees", 0); SetPVarInt(playerid, "JobStep", 0); SetPVarInt(playerid, "InHand", 0); MoneyEarned[playerid] = 0; CurseFacute[playerid] = 0; if(PlayerInfo[playerid][pShowJob] == 0 && PlayerInfo[playerid][pJob] != 5 && PlayerInfo[playerid][pLevel] < 3) SCM(playerid, COLOR_YELLOW, "Daca doresti sa vezi mai multe informatii folositoare de la job, o poti face prin comanda (/hud > Informatii job)."); new skill = GetPlayerSkill(playerid); if(PlayerInfo[playerid][pJob] == 11) { new rand = 1 + random(5); if(rand == 1) { Pos[0] = 877.5832; Pos[1] = -2126.4685; Pos[2] = 0.3231; CarAngle = -89.2800; } if(rand == 2) { Pos[0] = 877.3463; Pos[1] = -2113.4219; Pos[2] = 0.3231; CarAngle = -89.2800; } if(rand == 3) { Pos[0] = 796.3821; Pos[1] = -2114.0200; Pos[2] = -0.0049; CarAngle = 89.7000; } if(rand == 4) { Pos[0] = 796.9351; Pos[1] = -2127.4446; Pos[2] = -0.0049; CarAngle = 89.7000; } if(rand == 5) { Pos[0] = 796.1244; Pos[1] = -2100.6455; Pos[2] = -0.0049; CarAngle = 89.7000; } if(rand == 6) { Pos[0] = 797.0450; Pos[1] = -2139.8650; Pos[2] = -0.0049; CarAngle = 89.7000; } } if(PlayerInfo[playerid][pJob] == 12) { if(skill == 1) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill1Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1); else if(skill == 2) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill2Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1); else if(skill == 3) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill3Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1); else if(skill == 4) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill4Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1); else if(skill == 5) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill5Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1); } else { if(PlayerInfo[playerid][pJob] == 3) { if(skill == 1) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1); else if(skill == 2) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1); else if(skill == 3) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1); else if(skill == 4) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1); else if(skill == 5) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1); } else { if(skill == 1) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill1Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1); else if(skill == 2) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill2Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1); else if(skill == 3) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill3Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1); else if(skill == 4) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill4Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1); else if(skill == 5) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill5Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1); } } PutPlayerInVehicleEx(playerid, JobVehicle[playerid], 0); JobWorking[playerid] = 1; if(PlayerInfo[playerid][pJob] != 2) UpdateJobStats(playerid); Gas[JobVehicle[playerid]] = 100; WorkingTime[playerid] = 0; if(PlayerInfo[playerid][pJob] == 11) DisableRemoteVehicleCollisions(playerid, 1); SetPlayerVirtualWorld(playerid, 0); new engine,lights,alarm,doors,bonnet,boot,objective; vehEngine[JobVehicle[playerid]] = 1; GetVehicleParamsEx(JobVehicle[playerid],engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(JobVehicle[playerid],VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); return 1; } Asta este toata comanda eu la acest gamemode am comanda /editjob de unde setez masinile la fiecare job. Doar ca eu la job-ul case 16 nu folosesc masina si am setat in baza de date la veh 0. Si imi da aceasta problema din cauza la acest job. Daca scot case 16 de la /startwork nu mai am nici o eroare daca folosesc /startwork. Si nu gasesc nici o rezolvare.
  8. Sprite_RoPlayers

    Problema contorizare ore .

    In baza de date am pConnectTimex si pSecundex Skull o sa pun aceste modificari date de tine acu si o sa revin pe zi cu problema de ore ce acu nu prea mai este nimeni pe sv. @iSkull Am adaugat ce mi-ai spus si primesc in mysql_log asta acu [08:00:02] [ERROR] mysql_format - no value for specifier "%d" available [08:00:02] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'ConnectTime' in 'field list'
  9. Sprite_RoPlayers

    problema debug /startwork

    Buna seara. Am facut si eu un job si am urmatoarea problema . Job-ul acesta nu foloseste masina/masini folosesc gm-ul lui edison burned. Si am urmatoarea eroare in consola de la servar http://prntscr.com/m5l09m Si asta este ce-a ce am adaugat eu pentru job-ul meu case 16: { if(!PlayerToPoint(7.0, playerid, 1103.4166,-1655.3750,10.3646)) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Nu poti folosi aceasta comanda atata timp cat esti intr-un vehicul!"); //if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de conducere pentru a putea munci la acest job!"); SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!"); SendClientMessage(playerid, COLOR_GREY, "Intra in stadion pentru a incepe Antrenamentele!"); SetPlayerCheckpointEx(playerid, 1103.4166,-1655.3750,10.3646, 4.0); CP[playerid] = 53; return 1; } CP[playerid] = 600; SetPlayerCheckpointEx(playerid, 1082.3163,-1666.6954,10.3646, 1.0); PlayerTextDrawSetString(playerid, InfosTD, "Urmareste ~r~~h~puncte-le~w~~h~ de pe minimap pentru a termina ~n~Antrenamentele cu nota 10!"); SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); } Si nu gasesc nici o rezolvare . :((
  10. Sprite_RoPlayers

    Problema contorizare ore .

    enum pInfo { Float: pConnectTime, Float: pSeconds; cmds else if(strcmp(item, "hours", true) == 0) { if(userid != INVALID_PLAYER_ID) PlayerInfo[userid][pConnectTime] = valoare; format(query, sizeof(query), "UPDATE `users` SET `ConnectedTime`='%0.3f' WHERE `name`='%s'", valoare, id); mysql_query(SQL, query); Update(playerid, pConnectTimex); } function UpdateSecondary(playerid) { if(IsPlayerLogged[playerid] != 0) { Update(playerid, pConnectTimex); Update(playerid, pBank); Update(playerid, pCashx); Update(playerid, pRP); Update(playerid, pPayDayx); Update(playerid, pJailTimex); OnPlayerDateUpdateX2(playerid); } return 1; } if(PlayerInfo[i][pSleeping] == 0 && Spectate[i] == 255 && AFKSeconds[i] < 15) PlayerInfo[i][pSeconds] ++; PlayerInfo[i][pSeconds] = 0; if(PlayerInfo[i][pDailyLogin] == 0) { PlayerInfo[i][pDailyLogin] = 1; UpdateVar(i, "DailyLogin", 1); SCM(i, COLOR_LIGHTBLUE, "Ai primit de doua ori mai multe respect points si bani pentru primul tau payday de astazi."); } PlayerInfo[playerid][pSeconds] = cache_get_field_content_float(0, "Seconds"); cam asta am gasit .
  11. Sprite_RoPlayers

    TEPAR CosminAK47

    @CosminAK47 Bravo frate. Ti-ai stricat reputatia. pentru ce pentru 10 euro?. Omu a fost corect cu tine ti-a dat bani pe acel gamemode si tu ti-ai batut joc de el si de reputatia ta pe care o aveai .. @Twist Multumim ca ai postat, poate vom reusi sa scapam de aceste persoane false.
  12. Sprite_RoPlayers

    Problema contorizare ore .

    Ma poate ajuta cineva? Cu aceasta problema
  13. Sprite_RoPlayers

    Problema contorizare ore .

    Buna ziua am si urmatoarea problema. La fiecare pay day in loc sa`i dea nush o ora jucata ii ia din ore. Si nu se salveaza in baza de date chiar nu inteleg de la ce este chestia asta. Folosesc gamemode-ul burned. SCM(i, COLOR_WHITE, "Salariul tau a sosit! Viziteaza banca pentru a retrage banii."); format(string, sizeof(string), "Ai primit %0.2f ore jucate. (%.0f minute)", PlayerInfo[i][pSeconds]/3600, PlayerInfo[i][pSeconds]/60); SCM(i, COLOR_WHITE, string); PlayerInfo[i][pConnectTime] += PlayerInfo[i][pSeconds]/3600; if(PlayerInfo[i][pSeconds] >= 1800) { new query[180]; format(query, sizeof(query), "UPDATE `users` SET `DayHours`=`DayHours`+1 WHERE `ID`='%d'", PlayerInfo[i][pSQLID]); mysql_query(SQL, query); format(query, sizeof(query), "UPDATE `users` SET `HoursMonth`=`HoursMonth`+1 WHERE `ID`='%d'", PlayerInfo[i][pSQLID]); mysql_query(SQL, query);
  14. Sprite_RoPlayers

    Problema intrare in paint

    Salut CTM da astea sunt cordonatele si de la paint. Am rezolvat prin modificarea cordonatelor . Pwp dulke
  15. Sprite_RoPlayers

    [Tutorial] Bug Burned Despawn Vehicle

    Rip video
×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.