Jump to content

KraPsY

Membru
  • Posts

    3
  • Joined

  • Last visited

Posts posted by KraPsY

  1. On 2/28/2020 at 12:46 AM, KraPsY said:

    Nu l-am mai folosit deloc, e prima oara ca il folosesc, doar ca imi da eroarea asta cand introduc asta:

            case DIALOG_ANSWER: {            
                if(!response) {
                    SondajVotes[1] ++;
                    SCM(playerid, COLOR_GOLD, "Votul tau este negativ!");
                }
                else {
                    SondajVotes[0] ++;
                    SCM(playerid, COLOR_GOLD, "Votul tau este pozitiv!");
                }
                SetPVarInt(playerid, "Voted", 1);
            }

  2.         case DIALOG_EMAIL: {
                if(!response)
                    return Kick(playerid);

                if(strlen(inputtext) < 6 || strlen(inputtext) > 32)
                    return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Email", "Seteaza-ti adresa de email:", "Select", "Cancel");
                    
                gQuery[0] = EOS;
                mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Email`='%s' WHERE `ID`='%d'", inputtext, PlayerInfo[playerid][pSQLID]);
                mysql_tquery(SQL, gQuery, "", "");
                
                gString[0] = EOS;
                format(gString, sizeof(gString), "Email setat: %s.", inputtext);
                SCM(playerid, -1, gString);

                format(PlayerInfo[playerid][pEmail], 32, inputtext);
                
                ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Gender", "Seteaza-ti sexul:", "Masculin", "Feminin");
            }
     

    C:\Users\Lenovo\Desktop\samp server by KraPsY\gamemodes\tuts.pwn(161) : error 040: duplicate "case" label (value 1)

    ce fel de eroare este?

  3. C:\Users\Lenovo\Desktop\samp server by KraPsY\gamemodes\tuts.pwn(89) : error 029: invalid expression, assumed zero
    C:\Users\Lenovo\Desktop\samp server by KraPsY\gamemodes\tuts.pwn(89) : warning 215: expression has no effect
    C:\Users\Lenovo\Desktop\samp server by KraPsY\gamemodes\tuts.pwn(89) : warning 215: expression has no effect
    C:\Users\Lenovo\Desktop\samp server by KraPsY\gamemodes\tuts.pwn(89) : error 001: expected token: ";", but found ")"
    C:\Users\Lenovo\Desktop\samp server by KraPsY\gamemodes\tuts.pwn(89) : error 029: invalid expression, assumed zero
    C:\Users\Lenovo\Desktop\samp server by KraPsY\gamemodes\tuts.pwn(89) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    4 Errors.
     

     

    Si linia:

                mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Email`='%s' WHERE `ID`='%d'", , inputtext, PlayerInfo[playerid][pSQLID]);

     

    Ce ar trebui sa fac?

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