Jump to content

NERS

Membru
  • Content Count

    28
  • Joined

  • Last visited

Community Reputation

0 Neutru

About NERS

  • Rank
    Membru

Profile Information

  • Sex
    Masculin
  • Name in game
    NERS
  • Level of knowledge
    Mediu

Contact Methods

  • Discord
    NERS#1769

Recent Profile Visitors

118 profile views
  1. new respect = PlayerInfo[playerid][pLevel] * 3, money = PlayerInfo[playerid][pLevel] * 250; if(PlayerInfo[playerid][pRespectPoints] < respect) return SendClientMessage(playerid, COLOR_GREY, "Nu ai destule RP-uri! Foloseste comanda /stats pentru a vedea cate RP-uri ai.");
  2. NERS

    JobGoal

    nu e chiar asa greu faci o variabila si cand cnv termina o tura de job pui sa se updateze si cand atinge o suma anume sa se reseteze la 0
  3. inputtext); fara paranteza deschisa
  4. NERS

    battlepass

    cu 10 degete, o tastatura si putin creier
  5. NERS

    Server restart

    sincer sa fiu imi urasc viata pentru ca problema era de la comanda accept nu de la restart, mda.. imi cer scuze pt timpul irosit solutie: de la: if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat."); am schimbat in: if(id == INVALID_PLAYER_ID || !IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
  6. NERS

    Server restart

    acelasi lucru.. am rezolvat "partial" am facut o noua variabila 'serverrestart' si la onplayerdisconnect am pus sa ii updateze status-ul doar cand serverrestart este 0, dar comenzile de ex /sellmats /selldrugs etc merg, /accept nu
  7. NERS

    Server restart

    acelasi lucru
  8. NERS

    Server restart

    De ce cand se restarteaza serverul cu GameModeExit() [cand inchid samp-server merge normal], reintru si incerc sa folosesc o comanda pe cineva imi spune ca nu e conectat? Inainte de restart mergea totul, am incercat sa le dau kick inainte de restart dar nu merge nici asta Cod: (la query-uri am pus PlayerInfo [ i ], nu se vede acel [ i ] pentru ca face textul italic, cred) forward Restart(); public Restart() return GameModeExit(); YCMD:restart(playerid, params[], help) { if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid,-1,AdminOnly); new query[360]; SCMTA(COLOR_CLIENT," "); format(query,sizeof(query),"(( Admin %s: Server-ul se va restarta in cateva secunde! ))", GetName(playerid)); SCMTA(COLOR_CLIENT,query); format(query, sizeof(query), "(( Admin %s: Veti primi kick, o sa trebuiasca sa reintrati! ))", GetName(playerid)); SCMTA(COLOR_CLIENT,query); SCMTA(COLOR_CLIENT, " "); SendAdminMessage(COLOR_CLIENT,"Saving player data...",1); SetTimer("Restart", 5000, false); format(query, sizeof(query), "UPDATE `stuff` SET `GoalAmount`='%d'", GoalAmount); mysql_tquery(SQL, query, "", ""); foreach(Player, i) { CallLocalFunction("OnPlayerDisconnect", "is[20]", i, "Server Restart"); format(query, sizeof(query), "UPDATE `users` SET `CChar`='%d', `PaydayTime`='%d', `Energy`='%d', `EnergyJob`='%d', `Pass`='%d', `PassXP`='%d', `PassTier`='%d', `PassLevel`='%d' WHERE `ID`='%d'", PlayerInfo[pChar], PlayerInfo[pPaydayTime], PlayerInfo[pEnergy], PlayerInfo[pEnergyJob], PlayerInfo[pPass], PlayerInfo[pPassXP], PlayerInfo[pPassTier], PlayerInfo[pPassLevel], PlayerInfo[pSQLID]); mysql_tquery(SQL, query, "", ""); if(PlayerInfo[pGoalContributor] == 1) { Iter_Remove(GoalContributors, i); format(query, sizeof(query), "UPDATE `users` SET `GoalContributor`='1' WHERE `ID`='%d'", PlayerInfo[pSQLID]); mysql_tquery(SQL, query, "", ""); } KickEx(i); } return 1; }
  9. la linia 8 enum pInfo { //(tu ai pus cu i mic) 16: new PlayerInfo[MAX_PLAYERS][pInfo]; //ai scris player si nu players la 35 nu stiu, poate ai uitat mai sus o acolada sau o virgula cv, sau incearca sa scoti SQL =
  10. NERS

    nu mai trb

    nu mai trb
  11. NERS

    nu mai trb

    nu mai trb
  12. NERS

    Iteratorii

    Am inteles, multumesc pentru raspunsuri! atunci cred ca o sa fac doar pt admini, helperi si lideri
  13. Cat de mult ajuta iteratorii la optimizare? Daca vreau sa trec tot ce este posibil (admini/helperi/lideri/membri/cei cu cont premium/vip/etc.) pe iteratori pe gm burned original cat ar ajuta?
  14. rezolvat
  15. cred ca la asta te referi: UPDATE `users` SET `Pet`='0' WHERE `id`='15'
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.