Jump to content

Search the Community

Showing results for tags 'getgift'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • SA-MP General
    • Noutăţi şi Actualizări
    • Comunitatea SA:MP România
    • General
    • Suport Client
    • Imagini şi Videoclipuri
  • SA-MP Server
    • Publicitate Server
    • Suport Servere
  • SA-MP Scripting şi Pluginuri
    • Ajutor Scripting
    • Gamemode-uri
    • Filterscript-uri
    • Pluginuri
  • SA-MP Altele
    • Totul şi Nimic
    • Anunţuri
  • A/D TDM's Topicuri
  • Beginner Scripters's Discutii


  • General
    • Probleme frecvente
  • Server
  • Scripting
    • Funcţii
    • Callback-uri
  • Resurse
    • ID-uri
    • Jucător
    • Vehicul

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL





In-game Name

Found 3 results

  1. Problema intalnita (descriere): Am un bug la getgift, poti da de cate ori vrei... Si vreau sa fac sa poti da o data la 2 ore...Ero(area / rile) / warning-(ul / urile): -Liniile de cod / sursa / script-ul(obligatoriu): Imagini / Video (optional): -Ati incercat sa rezolvati singur?: Da, dar nu am reusit sa fac un timer... Tin sa mentionez ca am GM-ul Saints.
  2. Buna ziua acum 1-2 ore am implementat sistemul /getgift , totul merge perfect ! Imi da la fiecare payday 1 giftpoint's , merge sa iau cadourile , merge sa dau la toti giftpoints merge tot. Problema este ca daca ies de pe server nu mi se salveaza giftpoint's ! E urgent puteti sa-mi dati o solutie ?
  3. Buna ziua , sunt la inceput la scripting Am o erroare : C:\Users\George\Desktop\JustGame Server\gamemodes\JG.pwn(20989) : warning 219: local variable "gString" shadows a variable at a preceding level C:\Users\George\Desktop\JustGame Server\gamemodes\JG.pwn(20999) : error 017: undefined symbol "pExp" C:\Users\George\Desktop\JustGame Server\gamemodes\JG.pwn(20990) : warning 204: symbol is assigned a value that is never used: "szMessage" Folosesc GM JustGame si am adaugat comanda get gift , am facut tot ca in tutorial Dar intampin probleme la : CMD:getgift(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); // Verifica daca-i logat if(PlayerInfo[playerid][pGift] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Ai nevoie de minim 1 Gift Point pentru a putea folosi comanda."); // Iii trimite un mesaj daca nu are giftpoints new gString[512]; new szMessage[256];//s-ar putea sa nu ai voie daca nu ai si SCM switch(random(2)) // Aici e facut sa iti deie randem din cele 2 case-uri tu poti adauga case 3 case 4 etc.. si pentru fiecare case nou modifici in switch(random(3)) switch(random(4)) sau cate ai. { case 0: { new rp = 5;// Aici poti baga sa-i adauge cat rp vrei tu eu am pus 5 SendClientMessage(playerid, COLOR_WHITE, "Ai castigat 5 Respect Points de la giftbox.");// castiga 5 Respect points PlayerInfo[playerid][pGift] -= 1; Update(playerid, pGiftx); PlayerInfo[playerid][pExp] += rp; Update(playerid, pRP); GameTextForPlayer(playerid, "~g~5 Respect Points!", 5000, 1); } case 1: { new cash = 100000 + random(200000); // Castiga o suma de bani 100.000 $ + random din suma de 200.000 $ format(gString,sizeof(gString),"* You received $%s.",FormatNumber(cash)); // aici il scrie SendClientMessage(playerid, COLOR_SYN, gString);//aici afiseaza mesajul PlayerInfo[playerid][pGift] -= 1; Update(playerid, pGiftx); GivePlayerCash(playerid, cash); GameTextForPlayer(playerid, "~g~100.000 - 300.000$!", 5000, 1); } } 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.