Jump to content

Nobody

Membru
  • Posts

    18
  • Joined

  • Last visited

    Never

Everything posted by Nobody

  1. Nobody

    Problema

    sterge .dll lasa doar streamer, daca ai host pe linux atunci o sa fie streamer.so dar la windows nu mai pui si .dll lasi doar streamer in server.cfg
  2. Bun tot bug este, tot asa face...daca stie careva cum bag sistemu ala cu prob adika puncterob etc..sistemul de robb cu vanul ca la acel sistem nu apare bugul acesta...
  3. Nobody

    Help

    Ca sa iti functioneze trebuie sa ai o baza de date MYSQL, mai exact acolo iti cere datele de la baza de date #define SQL_HOST "localhost/sau adresa de la baza ta de date" #define SQL_USER "root/userul de la baza ta de date" #define SQL_PASS "parola de la baza ta de date" #define SQL_DB "DB_NAME"// aici intri in phpmyadmin iti faci o baza de date de exemplu test si akl iti faci coloanele etc... cauta un tutorial mai complex http://wiki.sa-mp.com/wiki/Mysql_tutorial
  4. Bun, acum nu imi mai da eroarea dar banii tot nu mi da, faza este ca mie imi da checkpointurile finale random sunt mai multe... cum le scot celalate sa las doar unul.... eu la playerranger am pus coordonatele de la un checkpoint si sunt mai multe...
  5. Loaded 0 plugins nu ai pluginurile puse pe host doar in server.cfg
  6. ai in scriptfiles folderul carkeys, intra acolo si gasesti numele la contul tau, intri in el si vezi ca ai carkey1=307 sau cat ai uh akl si stergi tot ce contine si gata.. intri in joc si iti poti cumpara masina
  7. error 029: invalid expression, assumed zero
  8. else if(CP[playerid] == 50)//Robbing1 { CP[playerid] = 51; new rand; rand = random(sizeof(RandomRob)); SetPlayerCheckpoint(playerid, RandomRob[rand][0],RandomRob[rand][1],RandomRob[rand][2], 3.0); SendClientMessage(playerid, COLOR_YELLOW, "Acum pleaca la depozit pentru a lua banii!"); } else if(CP[playerid] == 51)//Robbing2 { if(IsPlayerInRangeOfPoint(playerid, 3.0, 2378.4417,-2014.9686,14.8329)) { new cashr; new str[128]; cashr = PlayerInfo[playerid][pLevel]*50000; PlayerInfo[playerid][pRob] -= 20; // PlayerInfo[playerid][pRobSkill] += 5; SafeGivePlayerMoney(playerid, cashr); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); format(str, 128,"*Ai luat $%d pentru ca ai jefuit banca!", cashr); SendClientMessage(playerid, COLOR_YELLOW, str); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } } uite aici checkpointurile, intru in checkpoint dispare checkpointul dar nu imi da bani nu se intampla nimic
  9. Am rezolvat bugurile, dar acum nu imi mai da banii deloc nici mie...
  10. C:\Users\Nobody\Desktop\Gamelife GM\Gamelife GM\Gamelife GM\Gamelife GM\gamemodes\Godfather.pwn(9415) : error 003: declaration of a local variable must appear in a compound block C:\Users\Nobody\Desktop\Gamelife GM\Gamelife GM\Gamelife GM\Gamelife GM\gamemodes\Godfather.pwn(9415) : error 017: undefined symbol "cashr" C:\Users\Nobody\Desktop\Gamelife GM\Gamelife GM\Gamelife GM\Gamelife GM\gamemodes\Godfather.pwn(9415) : warning 215: expression has no effect C:\Users\Nobody\Desktop\Gamelife GM\Gamelife GM\Gamelife GM\Gamelife GM\gamemodes\Godfather.pwn(9417) : error 017: undefined symbol "cashr" C:\Users\Nobody\Desktop\Gamelife GM\Gamelife GM\Gamelife GM\Gamelife GM\gamemodes\Godfather.pwn(9417) : warning 215: expression has no effect C:\Users\Nobody\Desktop\Gamelife GM\Gamelife GM\Gamelife GM\Gamelife GM\gamemodes\Godfather.pwn(9420) : error 017: undefined symbol "cashr" C:\Users\Nobody\Desktop\Gamelife GM\Gamelife GM\Gamelife GM\Gamelife GM\gamemodes\Godfather.pwn(9422) : error 017: undefined symbol "cashr"
  11. error 001: expected token: ")", but found ";" error 036: empty statement la linia ce am pus-o...
  12. Problema este urmatoarea, dau robbank si trebuie sa merg la 2 checkpointuri, si eu daca parchez masina langa banca si dau /v locate imi apare un checkpoint si intru in el si zice ca am spart banca, imi da bani ca am spart banca iar apoi daca ma omoara cineva dupa ce mia dat bani ii da si lui banii, poate face si el acest bug si tot asa de exemplu daca stau eu si inca unul avem am2 masini personale si dam incontinu /v locate spargem banca de cate ori vrem, eu am un timer la comanda sa poti sa dai robbank odata la 2 ore, deci pe scurt dupa ce imi da mie bani si ma omoara cineva sa nu ii mai dea si lui
  13. Nobody

    Nu merge /f

    Ai adaugat la comanda /f ce trebuia ? else if(member==numarul factiuni tale) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Lord Vagos %s: %s. )) **", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Second Vagos %s: %s. )) **", sendername, result); } else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Killjah %s: %s. )) **", sendername, result); } else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Kidnapper %s: %s. )) **", sendername, result); } else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Mercenary %s: %s. )) **", sendername, result); } else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Vagos Kid %s: %s. )) **", sendername, result); } else { format(string, sizeof(string), "** Vagos Kid %s: %s. )) **", sendername, result); } SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string); } else if(leader==numarul factiunii tale) { format(string, sizeof(string), "** Lord Vagos %s: %s. )) **", sendername, result); SendFamilyMessage(PlayerInfo[playerid][pLeader], TEAM_AZTECAS_COLOR, string); } ?
  14. Nobody

    Heal

    if(strcmp(cmd, "/aevent", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "FOLOSINTA: /aevent [nume] (60.0 meters default)"); SendClientMessage(playerid, COLOR_GRAD5, "Nume Disponibile: heal, armour, gethere, givegun, disarm, respawn"); SendClientMessage(playerid, COLOR_GRAD5, "mute, unmute, freeze, unfreeze ,repair."); return 1; } if(strcmp(x_nr,"heal",true) == 0) { new amount; tmp = strtok(cmdtext, idx); amount = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_GREY,"FOLOSINTA: /aevent heal [suma]"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); for(new i = 0; i <= MAX_PLAYERS; i++) { if (ProxDetectorS(60.0, playerid, i)) { format(string, sizeof(string), "[EVENT]: Administratorul %s v-a setat viata tuturor la %d.0 HP.",sendername,amount); SendClientMessage(i, COLOR_LIGHTRED, string); SetPlayerHealth(i, amount); } } return 1; } incearca cu asta...
  15. Salut, am si eu o problema la robbank adika cand dau /robbank inauntrul banci ies afara imi da un check point apoi inca unul, ma duc la ultimul checkpoint imi da banii ca am spart banca, iar apoi daca ma omoara un player imi fura banii si poate sa duca si el banii la checkpoint ii apare si lui checkpoint... if(strcmp(cmd, "/robbank", true) == 0) { if(CooldownRob[playerid]) return SendClientMessage(playerid,COLOR_1BLUE,"{2BB3D5}* Banca poate fi sparta doar o data la 2 ore !"); if(PlayerToPoint(3.0,playerid, 1237.7876,-729.1329,1088.0284)) { if(IsACop(playerid)) { SCM(playerid, COLOR_WHITE, "{F23A0D}* Nu poti sparge banca deoarece esti politist !"); return 1; } Robbing[playerid] = 1; CP[playerid] = 50; SetPlayerCheckpoint(playerid, 1460.9639, -1022.6666, 23.8281, 3.0); WantedLevel[playerid] = 0; new wanted = GetPlayerWantedLevel(playerid); WantedLevel[playerid] = wanted + 10; SetPlayerCriminal(playerid,255, "Ai spart banca !"); BizzInfo[0][bProducts] -= 20; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "{FF0000}WARNING{FFFFFF}: %s a spart banca,omoara-l sa ii furi banii!", name); SendClientMessageToAll(COLOR_GREY, string); for(new i = 0; i < MAX_PLAYERS; i++) { CooldownRob[i] = 7200; } } else { SendClientMessage(playerid, COLOR_GREY,"{C0C0C0}Trebuie sa fi in banca {ff0000}{C0C0C0} pentru a o jefui!"); return 1; } return 1; else if(CP[playerid] == 50)//Robbing1 { CP[playerid] = 51; new rand; rand = random(sizeof(RandomRob)); SetPlayerCheckpoint(playerid, RandomRob[rand][0],RandomRob[rand][1],RandomRob[rand][2], 3.0); SendClientMessage(playerid, COLOR_YELLOW, "Acum pleaca la depozit pentru a lua banii!"); } else if(CP[playerid] == 51)//Robbing2 { new cashr; new str[128]; cashr = PlayerInfo[playerid][pLevel]*50000; PlayerInfo[playerid][pRob] -= 20; // PlayerInfo[playerid][pRobSkill] += 5; SafeGivePlayerMoney(playerid, cashr); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); format(str, 128,"*Ai luat $%d pentru ca ai jefuit banca!", cashr); SendClientMessage(playerid, COLOR_YELLOW, str); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(Robbing[playerid] == 1) { DisablePlayerCheckpoint(playerid); Robbing[playerid] = 0; CP[playerid] = 0; new killer[MAX_PLAYER_NAME]; new mort[MAX_PLAYER_NAME]; GetPlayerName(playerid, mort, sizeof(mort)); GetPlayerName(killerid, killer, sizeof(killer)); format(string, sizeof(string), "» L-ai omorat pe %s si i-ai furat banii.Fuga la checkpoint!", mort); SendClientMessage(killerid, COLOR_1BLUE, string); format(string, sizeof(string), "%s l-a omorat pe %s si i-a furat toti banii!", killer, mort); SendClientMessageToAll(0xFF0000FF, string); CP[killerid] = 50; SetPlayerCheckpoint(killerid, -2597.8574,-982.0301,21.0064, 3.0); Robbing[killerid] = 1; if(IsPlayerConnected(playerid))//if(IsACop(killerid)) { DisablePlayerCheckpoint(playerid); Robbing[playerid] = 0; new banifurati; banifurati = copon*50000; CP[playerid] = 0; GetPlayerName(playerid, mort, sizeof(mort)); GetPlayerName(killerid, killer, sizeof(killer)); format(string, sizeof(string), "%s l-a omorat pe %s cand a spart banca.", killer, mort); SendClientMessageToAll(0xFF0000FF, string); GivePlayerMoney(killerid, banifurati); } return 1; }
  16. Am si eu niste mici probleme, cand dau vpark sau apark mi le salveaza doar intr-o pozitie nu cum o parchezi in ce loc o parchezi si nu ramane tuningul .... masinile care sunt de vanzare le poti conduce cel putina sa nu le conduca oriceplayer
  17. Am rezolvat, mersi oricum :)
  18. Salut, am urmat toate tutorialele care leam gasit, sa fac niste porti pentru factiunea TCC, nu reusesc sa le fac sa se miste... tot ce gasesc pentru createobject eu am nevoie pentru createdynamicobject, daca stie cineva si poate sa ma ajute mersi...
×
×
  • 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.