Jump to content

VLM

Membru
  • Posts

    302
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by VLM

  1. On 5/9/2020 at 5:20 PM, Alexandru Alex said:

    C:\Users\flowg\OneDrive\Desktop\GM\gamemodes\GM.pwn(419) : error 020: invalid symbol name ""
    C:\Users\flowg\OneDrive\Desktop\GM\gamemodes\GM.pwn(422) : error 010: invalid function or declaration
    C:\Users\flowg\OneDrive\Desktop\GM\gamemodes\GM.pwn(427) : error 010: invalid function or declaration
    C:\Users\flowg\OneDrive\Desktop\GM\gamemodes\GM.pwn(1883) : error 017: undefined symbol "MarkerPos"
    C:\Users\flowg\OneDrive\Desktop\GM\gamemodes\GM.pwn(1883) : warning 215: expression has no effect
    C:\Users\flowg\OneDrive\Desktop\GM\gamemodes\GM.pwn(1883) : error 001: expected token: ";", but found "]"
    C:\Users\flowg\OneDrive\Desktop\GM\gamemodes\GM.pwn(1883) : error 029: invalid expression, assumed zero
    C:\Users\flowg\OneDrive\Desktop\GM\gamemodes\GM.pwn(1883) : fatal error 107: too many error messages on one line

    error 017: undefined symbol "MarkerPos" -> Defineste MarkerPos , din ce observ asta cu MarkerPos nu e de la jobgoal.

    Pentru restu arata si linia unde primesti eroare.

  2. 11 hours ago, Gigel said:

    Atunci, cel mai probabil o sa ai o functie deja dfinita pentru a forta update in baza de date (pEmailx sau ceva asemanator)

    incearca sa adaugi condului tau linia asta:

    
    Update(playerid,pEmailx);

    oriunde dupa linia 

    
     mysql_query(SQL,str1);

    dar inainte de return 1;

     

    Exemplu:

    
    
     
    
    case DIALOG_REGISTER4: {
            new length = strlen(inputtext), string[64];
            if(length > 40) return ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_INPUT, "Register:", "Scrie mai jos adresa ta de email!\nExemplu: [email protected]\n\nEmail invalid!", "Ok", "");
            if(IsMail(inputtext) && response && strlen(inputtext) < 30) {
                new emailtext[64];
                mysql_real_escape_string(inputtext, emailtext);
                strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64);
                new str1[512];
                format(str1,512,"UPDATE `users` SET `Email`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pEmail],PlayerInfo[playerid][pSQLID]);
                mysql_query(SQL,str1);
                Update(playerid,pEmailx);
                format(string, sizeof(string), "Email setat: %s.", PlayerInfo[playerid][pEmail]);
                SendClientMessage(playerid, 0xFFDE96FF, string);
                ShowPlayerDialog(playerid, DIALOG_REGISTER5, DIALOG_STYLE_INPUT, "Referral", "Ai fost adus de cineva pe aceasta comunitate?\nIntrodu codul de referral al celui care te-a adus pe server:\nDaca nu ai fost adus de nimeni apasa pe 'Close'", "Ok", "Close"); 
                return 1;
            }
            else ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_INPUT, "Email:", "Scrie mai jos adresa ta de email!\nExemplu: [email protected]\n\nEmail invalid!", "Ok", "");
        }

     

     

    Am incercat, la fel, nu a mers.

  3. 5 minutes ago, Gigel said:

    Consola ce zice dupa ce introduci emailul? Ai ceva erori?

    Mai ai o limita de 30 de caractere setata mai sus in cod - poate o depasesti
     

    
    if(IsMail(inputtext) && response && strlen(inputtext) < 30)

     

    Nu am erori in server.log, nu te lasa sa te inregistrezi daca depasesti limita, am incercat si fara limita.

×
×
  • 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.