Jump to content

iPanter

Membru
  • Posts

    33
  • Joined

  • Last visited

Profile Information

  • Level of knowledge
    Începător

Recent Profile Visitors

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

iPanter's Achievements

Contributor

Contributor (5/14)

  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter
  • First Post

Recent Badges

0

Reputation

  1. Fai asa: format(string, sizeof(string), "L-ai trezit pe %s si s-a pus pe umarul tau.",PlayerInfo[playerid][pPetName]); SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  2. function Timers() { new string[180], szTD[600], anim, Float: ppHealth, Float: ppArmour, Float: x, Float: y, Float: z, Float: animpos[3], swinner[180]; foreach(Player, i) { if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) {
  3. Am facut asa: if(CrateTime[i] > 0) { CrateTime[i] --; new amount, rand; if(CrateType[i] == 1) rand = random(30); else rand = random(50); switch(rand) { case 0..15: { amount = random(5) + 5; if(CrateType[i] == 1) amount += 5; format(string, sizeof(string), "Steep: %d/30~n~~y~%sx RP", 30-CrateTime[i], FormatNumber(amount)); PlayerTextDrawSetString(i, CrateTD[4], string); for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]); if(CrateTime[i] == 0) PlayerInfo[i][pExp] += amount, Update(i, pRP), SCM(i, COLOR_LGREEN, "Felicitari! Ai castigat RP-uri!"); for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]); } case 16..25: { amount = random(50) + 100; if(CrateType[i] == 1) amount += 100; format(string, sizeof(string), "Steep: %d/30~n~~p~%s PremiumPoints", 30-CrateTime[i], FormatNumber(amount)); PlayerTextDrawSetString(i, CrateTD[4], string); for(i = 0; i < 5; i++) PlayerTextDrawShow(i, CrateTD[i]); if(CrateTime[i] == 0) PlayerInfo[i][pPremiumPoints] += amount, Update(i, pPremiumPoints), SCM(i, COLOR_LGREEN, "Felicitari! Ai castigat PremiumPoints!"); for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]); } default: { amount = random(1000000) + 500000; if(CrateType[i] == 1) amount += 500000; format(string, sizeof(string), "Steep: %d/30~n~~g~$%s", 30-CrateTime[i], FormatNumber(amount)); PlayerTextDrawSetString(i, CrateTD[4], string); for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]); if(CrateTime[i] == 0) GivePlayerCash(i, amount), Update(i, pCashx), SCM(i, COLOR_LGREEN, "Felicitari! Ai castigat bani!"); for(i = 0; i < 5; i++) PlayerTextDrawHide(i, CrateTD[i]); } } } si primesc eroarea asta: [debug] AMX backtrace: [debug] #0 0035e4fc in public Timers () at C:\Users\Andrei\Desktop\burned.ro\gamemodes\wa-rpg.pwn:31352 [debug] Run time error 4: "Array index out of bounds" [debug] Accessing element at index 1995 past array upper bound 1000 Asta e linia: if(CrateTime > 0) {
  4. Nu vad ce e greu de inteles.. Deci ala e sistem-ul din pastebin cu un alt textdraw.. Si eu vreau sa modific sistem-ul sa apara textdraw-ul ala de mai jos, atata tot. Nu stiu cum sa il pun in string si etc.
  5. Salut, cum pot face td-ul de mai joc compatibil cu sistem-ul acela? Aveti in pastebin tot ce trebuie.. https://pastebin.com/a7VF38zT
  6. Salut, modifica cu asta la functin showshop. function ShowShop(playerid) { new gold = PlayerInfo[playerid][pPremiumPoints], string[128], szDialog[3000];
  7. Trebuia sa scad dimensiunea la 2stringuri in function ShowShop. Se poate da t/c
  8. Nu are legătură... E virgula, nu contează asta.
  9. Nu inteleg de ce primesc acceasta eroare https://imgur.com/a/KLF7Gdk cand scriu /shop pe sv. Si pe sv nu o citeste ca, comanda.. Imi zice ca nu exista in gm. Linia de apare in log: CMD:shop(playerid, params[]) return ShowShop(playerid); Am incercat sa o fac sa nu returneze direct si este acelasi lucru.
  10. Rezolvat. Se poate da t/c. Daca mai intalneste cineva problema asta este de la Visual C++
×
×
  • 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.