Jump to content

Koqs

Membru
  • Posts

    78
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Koqs

  1. Koqs

    O mica problema

    Pai daca se schimba in baza de date si nu faci sa se aplice si pe server degeaba, atunci cand player-ul da towcar la vehicul sa ia coordonatele din baza de date. si sa o spawneze acolo
  2. inlocuieste acolo unde scrie SkillZ cu numele tau din samp si o sa poti sa te conectezi cu rcon
  3. Arata public OnRconLoginAttempt(ip[], password[], success), si la admin e ceva din gamemode nu se salveaza bine sau nu faci tu ceva cum trebuie
  4. sa-mp-ul suporta maxim sume de 32 de biti. care este 2,147,483,647 pentru a detine mai mult de 2,147,483,647, ai nevoie sa salvezi bani in mai multe variabile.
  5. Faza este de la OnPlayerPickUpPickup uite cum am eu in gamemode-ul meu incearca si vezi daca poti inlocuii la gamemode-ul tau public OnPlayerPickUpPickup(playerid, pickupid) { new string[256]; for(new i = 0; i < MAX_OBJECTS; i++) { if(pickupid == ObjectID[i] && ObjectID[i] != -1) { if(PlayerInfo[playerid][pAdmin] != 0) return SCM(playerid, COLOR_ERROR, "Eroare:{FFFFFF}Nu poti colecta acest cadou deoarece esti admin!"); new id = CountObjects(); format(string, sizeof(string), "NR AdmBot: %s a gasit un obiect din event si a castigat $%d.", GetName(playerid), ObjectMoney[i]); SendClientMessageToAll(0xFF8800FF, string); GivePlayerMoney(playerid, ObjectMoney[i]); if(id-1 > 1) format(string, sizeof(string), "NR AdmBot: In acest moment mai sunt %d obiecte disponibile.", id-1); else if(id-1 == 1) format(string, sizeof(string), "NR AdmBot: In acest moment mai este un singur obiect disponibil."); else if(id-1 == 0)format(string, sizeof(string), "NR AdmBot: Evenimentul a luat sfarsit! Multumim pentru participare."); SendClientMessageToAll(0xFF8800FF, string); DestroyPickup(ObjectID[i]); ObjectID[i] = -1; ObjectMoney[i] = 0; } } return 1; }
  6. Daca folosesti sublime text cel mai probabil nu ai setat folderul la syntaxa cum trebuie, daca folosesti pawn.exe verifica in gamemodetau -> pawno -> include si vezi sa ai include-ul a_mysql bagat acolo
  7. Da-ti update la include si vezi daca mai e vreo problema, daca nu ai nevoie de el il stergi ca eroare nu e din comanda /oplace ci din un include
  8. Acum vad ca tu ai o problema la include-uri \pawno\include\SW.inc(204) : error 001: expected token: ";", but found "if" EROAREA anume SW.inc la linia 204
  9. Creeaza o variabila new InMiniGame[MAX_PLAYERS]; atunci cand playerul se teleporteaza in minigame sa o activezi. La comanda minigame1 sub setplayervirtualworld bagi InMiniGame[playerid] = 1; pentru a nu putea sa intre de mai multe ori. La public SetTimerEx este nevoie doar de un timer si ala UnfreezeStation sau cum il ai tu acolo, acolo bagi TogglePlayerControllable(playerid, 1); Si pentru aspect bagi tot la settimerex GameTextForPlayer(playerid, 3000, "~r~Start!", 4); Numai stiu exact parametri la gametextforplayer inlocuiesti tu ce si cum.. Nu stiu ce tip de minigame ai tu dar variabila trebuie resetata Sub OnPlayerConnect InMiniGame[playerid] = 0; Sub OnPlayerSpawn(asta doar pentru ca nu stiu ce tip de minigame este) InMiniGame[playerid] = 0; Daca nu te-am lamurit add pe discord Alow#8787 Sper ca te-am ajutat
  10. De ce te chinui atata pentru o comanda foarte simpla un cod de genu ar fi
  11. Si linia trebuie sa o ghicim?
  12. Koqs

    GPS

    Te duci la DIALOG_GPS sau cum il ai tu definit si pui la final \nRoll Dupa te duci la case Dialog_gps mergi la ultimul caz si mai adaugi unul si acolo pui SetPlayerCheckpoint(playerid, x, y ,z);
  13. Am avut si eu aceasta problema doar intra in acel garage_system.inc cu notepad si copiaza tot ce trebuie unde trebuie..
  14. Am si eu o problema la jobgoal, cand cineva face job nu pune banii castigati de acel player in jobgoal function GiveJobSalary(playerid) { // var new string[128], skill = GetPlayerSkill(playerid), money, bonus; // ++ switch(PlayerInfo[playerid][pJob]) { case 1: money = skill*100*KG[playerid] + 18000 + random(1000); case 2: { new category = GetPVarInt(playerid, "Category"); switch(category) { case 0: money = skill*3000 + 28000 + random(1000); case 1: money = skill*3000 + 28000 + random(2000); case 2: money = skill*3000 + 28000 + random(3000); case 3: money = skill*3000 + 28000 + random(4000); case 4: money = skill*3000 + 28000 + random(5000); case 5: money = skill*3000 + 28000 + random(6000); } } case 3: money = skill*5000 + 30000 + random(1000); case 4: money = skill*1000 + 25000 + random(1000); case 5: money = skill*1500 + 25000 + random(1000); //case 6: money = 10000 + random(200) + GetPlayerSkill(playerid)*4000; case 9: money = skill*1000 + 10000 + random(10000); case 10: money = skill*2000 + 28000 + random(1000); case 12: money = skill*4000 + 27000 + random(1000); case 13: money = skill*100 + 2000 + random(1000); } giveserverjobgoal(money+bonus); if(WorkingTime[playerid] < 60 && PlayerInfo[playerid][pJob] != 13) money -= 10000; //if(PlayerInfo[playerid][pPremiumAccount] == 1) bonus = money/2; // info JobDeelay[playerid][PlayerInfo[playerid][pJob]] = 180; MoneyEarned[playerid] += money+bonus; CurseFacute[playerid] ++; format(string, sizeof(string), "%s a primit $%s pentru munca efectuata la job-ul %s.", GetName(playerid), FormatNumber(money+bonus), JobInfo[PlayerInfo[playerid][pJob]][jName]); InsertLog(playerid, string, LOG_MONEY); format(string, sizeof(string), "Castig: $%s", FormatNumber(money)); SCM(playerid, COLOR_GRAD2, string); format(string, sizeof(string), "Castig total: $%s", FormatNumber(money+bonus)); SCM(playerid, COLOR_GRAD2, string); format(string, sizeof(string), "Timp job: %s", CalculeazaTimp2(WorkingTime[playerid])); SCM(playerid, COLOR_GRAD2, string); GivePlayerCash(playerid, money+bonus); Update(playerid, pCashx); WorkingTime[playerid] = 0; if(JobPoints(playerid) == GetNeedPoints4(playerid, PlayerInfo[playerid][pJob])) { format(string, sizeof(string), "* Felicitari! Noul tau skill la acest job este %d.", GetPlayerSkill(playerid)); SCM(playerid, COLOR_YELLOW, string); } else { if(togjob[playerid] == 0) JobProgress(playerid); } if(GetPlayerSkill(playerid) == 5) finishAchievement(playerid, 0); UpdateProgress(playerid, 1); return 1; } function giveserverjobgoal(money) { server_jobgoal += money; foreach(new i : Player) { if(showserverjobgoal[i] == 1) { new koqs[64]; format(koqs, 64, "~g~$%s~n~~w~out_of~n~$xx.xxx.xxx", FormatNumber(server_jobgoal)); TextDrawSetString(jobgoaltextdraw[1], koqs); TextDrawShowForPlayer(i, jobgoaltextdraw[0]); TextDrawShowForPlayer(i, jobgoaltextdraw[1]); } } if(server_jobgoal >= 70000000) { new string[128], koqsadv = 1000000 + random(2000000), pp = 1 + random(4); foreach(new x : Player) { GivePlayerCash(x, koqsadv); PlayerInfo[x][pExp] += 3; Update(x, pRP); PlayerInfo[x][pPremiumPoints] += pp; Update(x, pPremiumPoints); } SendClientMessageToAll(-1, ""); SendClientMessageToAll(-1, ""); SendClientMessageToAll(-1, ""); SendClientMessageToAll(0x26e01dFF, "JOB GOAL: {ffffff}Goal-ul a fost completat si toti jucatorii online au primit:"); format(string, sizeof(string), "- $%s", FormatNumber(koqsadv)); SendClientMessageToAll(-1, string); format(string, sizeof(string), "- %d puncte premium", pp); SendClientMessageToAll(-1, string); SendClientMessageToAll(-1, "- 3 puncte de respect"); server_jobgoal = 0; foreach(new koqsnab : Player) { if(showserverjobgoal[koqsnab] == 1) { new koqs[64]; format(koqs, 64, "~g~$%s~n~~w~out_of~n~$xx.xxx.xxx", FormatNumber(server_jobgoal)); TextDrawSetString(jobgoaltextdraw[1], koqs); TextDrawShowForPlayer(koqsnab, jobgoaltextdraw[0]); TextDrawShowForPlayer(koqsnab, jobgoaltextdraw[1]); } } } return true; } Cineva stie, daca mai e nevoie de ceva cod spuneti-mi. Gamemode-ul este burned
  15. Nu ai pus return 1; la comanda /quests
  16. Am si eu o problema, am scos masinile(alea luate de playeri) din baza de date la users am facut tot ce trebuie si cand intru pe sv numai merg pickup urile si chestiile din system.inc am bagat pluginu streamer si tot nu merge, aveti vreo idee?Sunt pe host nu pe localhost.Si gamemode-ul este burned.
  17. Am si eu o problema, am scos masinile(alea luate de playeri) din baza de date la users am facut tot ce trebuie si cand intru pe sv numai merg pickup urile si chestiile din system.inc am bagat pluginu streamer si tot nu merge, aveti vreo idee?Sunt pe host nu pe localhost.Si gamemode-ul este burned.
  18. Mersi, am rezolvat de mult era o problema, trebuia sa sterg return 1; de la spawnactor1
  19. Am rezolvat cu actorii a trebuit sa sterg return 1; de la primul actor, acum cine stie cum pot schimba spawn-ul ca nu gasesc absolut niciunde...
  20. Salut, cine stie de ce primesc eroarea unreachable code la linia 2282 si primul functioneaza perfect dar al doilea nu se spawneaza, stie cineva? Script Eroare linia 2282 Si cum pot schimba spawn-ul ca nu gasesc...Gamemode Burned
  21. Ai conectat la baza de date?Si ai filterscript-urile?
  22. Koqs

    Erori Pawno

    Ai pus 2 " in plus 89 - ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX, ""COL_WHITE"Succes", ""COL_WHITE"Ai fost conectat cu succes pe server!", "Continua", "Iesi"); inlocuieste cu asta 89 - ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX, "COL_WHITE"Succes", "COL_WHITE"Ai fost conectat cu succes pe server!", "Continua", "Iesi");
  23. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case DIALOG_REGISTER: { if(!response) return Kick(playerid); if(strlen(inputtext) < 6 || strlen(inputtext) > 32) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", "Scrie o parola pentru a te putea inregistra!(Minim 6 caractere / maxim 32):", "Select", "Cancel"); gQuery[0] = EOS; mysql_format(SQL, gQuery, sizeof(gQuery), "INSERT INTO `users ` (`Name`, `Password`) VALUES ('%s', '%s')",GetName(playerid), inputtext); mysql_tquery(SQL, gQuery, "insertAccount", "1", playerid); gString[0] = EOS; format(gString, sizeof(gString), "Parola ta contine %d caractere.", strlen (inputtext)); SCM(playerid, -1,gString); format(PlayerInfo[playerid][pPassword], 32, inputtext); ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Email", "Seteaza-ti adresa de email:", "Select", "Cancel"); } case DIALOG_EMAIL: { if(!response) return Kick(playerid); if(strlen(inputtext) < 6 || strlen(inputtext) > 32) return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Email", "Seteaza-ti adresa de email:", "Select", "Cancel"); gQuery[0] = EOS; mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Email`='%s' WHERE `ID`='%d'", inputtext, PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, gQuery, "", "", playerid); gString[0] = EOS; format(gString, sizeof(gString), "Email-ul tau este: %s.", inputtext); SCM(playerid, -1,gString); format(PlayerInfo[playerid][pEmail], 32, inputtext); ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Gender", "Seteaza-ti sexul:", "Masculin", "Feminin"); } case DIALOG_GENDER: { switch(response) { case 0: { PlayerInfo[playerid][pGender] = 1; SCM(playerid, -1, "Sex setat: Feminin."); } case 1: { PlayerInfo[playerid][pGender] = 0; SCM(playerid, -1, "Sex setat: Masculin."); } } gQuery[0] = EOS; mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Gender`='%d' WHERE `ID`='%d'", PlayerInfo[playerid][pGender], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, gQuery, "", "", playerid); SpawnPlayer(playerid); } case DIALOG_LOGIN: { if(!response) return Kick(playerid); mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT = FROM `users` WHERE `Name`='%s' AND `Password` = '%s' LIMIT 1", GetName(playerid), inputtext); mysql_tquery(SQL, gQuery, "onLogin", "1", playerid); } } return 1; }
×
×
  • 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.