Jump to content

MiritaXD

Membru
  • Posts

    186
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by MiritaXD

  1. CMD:skip(playerid, params[]) { TutTime[playerid] = 100; SCM(playerid, -1, "Gata"); return true; }
  2. Sterge adminlog(string) si variabila "up" nu este folosita
  3. if(CpZiar[playerid] == 1) { if(IsPlayerAttachedObjectSlotUsed(playerid,6)) { new rand, money, exp, string[256]; if(GetPVarInt(playerid, "InHand") == 0) return SCM(playerid, -1, "Blablabla!"); money = 15000 + random(5000); exp = 3 + random(3); PlayerInfo[playerid][pMoney] += money; GivePlayerMoneyEx(playerid, money); PlayerInfo[playerid][pExp] += exp; MoneyEarned[playerid] += money; PlayerInfo[playerid][pMoney] += money; UpdateVariable(playerid, pMoneyx); UpdateVariable(playerid, pExpx); format(string, sizeof(string), "(Job): {ffffff}Ai primit %d puncte de experienta.", exp); SendClientMessage(playerid, 0x00e1edFF, string); rand = random(sizeof(RandomZiar)); SetPlayerCheckpoint(playerid, RandomZiar[rand][0], RandomZiar[rand][1], RandomZiar[rand][2], 2.0); format(string, sizeof(string), "Informatii Job~n~~n~Ai castigat: $%s~n~Castig Total: $%s", FormatNumber(money), FormatNumber(MoneyEarned[playerid])); PlayerTextDrawSetString(playerid, JobTD[6], string); PlayerTextDrawShow(playerid, JobTD[6]); SetPVarInt(playerid, "InHand", 0); SetPlayerSpecialAction(playerid, 0); RemovePlayerAttachedObject(playerid, 6); ClearAnimations(playerid); } }
  4. CMD:getjob(playerid, params[]) { if(PlayerJob[playerid] != 0) return SCM(playerid, COLOR_ORANGERED, "Ai deja un job."); new string[256]; if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2795.7803,-1619.5692,10.9219)) return SCM(playerid, COLOR_ORANGERED, "Nu esti in zona unui job."); PlayerJob[playerid] = 1; format(string, sizeof(string), "Noul tau job este %s", JOB_NAME1); SCM(playerid, COLOR_ORANGERED, string); return 1; }
  5. Posibil sa deti un vehicul invalid
  6. new amount, rand = random(20);
  7. MiritaXD

    erori

    Codu tau(din pastebin) if(PlayerInfo[playerid][pCrates][0] == 0); return SCM(playerid, -1, "EROARE: Nu ai un crate normal!"); pune if(PlayerInfo[playerid][pCrates][0] == 0) return SCM(playerid, -1, "EROARE: Nu ai un crate normal!");
  8. CMD:skip(playerid, params[]){ TutTime[playerid] = 80; retunr true; } Nu sunt sigur daca e aceiasi variabila la burned
  9. arata functia LoadProperty
  10. Normal că nu mai primești erorii, server-ul nu mai acceseaza acele funcții
  11. Poate fi de la versiunea mysql sau nu e ceva bine. Arata un cod
  12. incearca sa adaugi #pragma compress 0
  13. ai adaugat SelectTextDraw(playerid, -1);? ai adaugat "raza" la PlayerTextDrawTextSize(playerid, textid], 20.000000, 50.000000);?
  14. Ai facut o functie de load?
  15. incearca asta CMD:testtrailer(playerid,params[]) { if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) && Trailer[playerid] == 0) return SCM(playerid,-1,"Nu ai o remorca!"); SetTimerEx("AttachTrailer", 1000, 0, "i", playerid); return true; }
  16. YCMD:wipehouses(playerid, params[], help) { new string[180], query[180]; if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_GREY, "Nu ai nivelul necesar de admin pentru a face asta."); for(new i = 1; i < sizeof(HouseInfo); i++) { foreach(Player, i) { if(IsPlayerConnected(i) && PlayerInfo[i][pHouse] == i) { PlayerInfo[i][pHouse] = 999; PlayerInfo[i][pRented] = -1; Update(i, pHousex); } } HouseInfo[i][hHel] = 0; HouseInfo[i][hArm] = 0; HouseInfo[i][hLock] = 0; HouseInfo[i][hOwned] = 1; HouseInfo[i][hValue] = 0; format(query,sizeof(query),"UPDATE `houses` SET `Hel`='0',`Arm`='0',`Lockk`='0',`Owned`='1',`Owner`='The State',`Value`='0' WHERE `ID`='%d'",house); mysql_query(SQL,query); format(query,sizeof(query),"UPDATE users SET `House`='999' WHERE `name`='%s'",HouseInfo[i][hOwner]); mysql_query(SQL,query); strmid(HouseInfo[i][hOwner], "The State", 0, strlen("The State"), 255); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "* Casa %d a fost vandut cu succes la stat!", i); SendClientMessage(playerid, COLOR_YELLOW, string); UpdateLabel(1, i); } return 1; }
  17. Host/LocalHost? Arata server.cfg
  18. YCMD:wherebonus(playerid, params[], help) { new randomblablabal = random(3)+1; switch(randomblablabal) { case 1: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); case 2: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); case 3: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); case 4: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); } return true; }
  19. MiritaXD

    Ajutor Logo

    new Text:TDEditor_TD[1]; TDEditor_TD[0] = TextDrawCreate(633.374938, 423.333221, "MiritaXD_/_~r~test~n~~w~rpg.LocalHost.ro"); TextDrawLetterSize(TDEditor_TD[0], 0.220624, 1.244167); TextDrawAlignment(TDEditor_TD[0], 3); TextDrawColor(TDEditor_TD[0], -1); TextDrawSetShadow(TDEditor_TD[0], 0); TextDrawSetOutline(TDEditor_TD[0], 1); TextDrawBackgroundColor(TDEditor_TD[0], 255); TextDrawFont(TDEditor_TD[0], 2); TextDrawSetProportional(TDEditor_TD[0], 1); TextDrawSetShadow(TDEditor_TD[0], 0); //Player TextDraws: new PlayerText:TDEditor_PTD[MAX_PLAYERS][1]; TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 633.374938, 423.333221, "MiritaXD_/_~r~test~n~~w~rpg.LocalHost.ro"); PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.220624, 1.244167); PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 3); PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1); PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0); PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 1); PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255); PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 2); PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1); PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
  20. MiritaXD

    Ajutor Logo

    %s / blablabla~n~blablabla.com
  21. Ma gandeam la altceva =))) probabil el are DIALOG_RENTAIR 99 dupa are alt dialog cu id 100 si trebuie setat 101 treci dialog urile pe enum ex: enum { DIALOG_LAPTE, DIALOG_APA, DIALOG_SIRET }
  22. faci case DIALOG_RENTAIR1:
×
×
  • 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.