Jump to content

Question

Posted

Nick: Stalker

Problema: La inregistrarea unui jucator , am incercat sa adaug si emailul , dar apare problema cu dimensiunea vectorului. Problema e la partea cu "PlayerData[playerid][pEmail] = inputtext;" . Cand am declarat vectorul la pEmail am pus "pEmail[300]" . In mysql tipul e VARCHAR , dimensiunea am pus tot 300.

Erori / warnings: array sizes do not match, or destination array is too small.

Lini/script: [pawn]ShowPlayerDialog(playerid,103,DIALOG_STYLE_INPUT,"{43D1D1}Email!","Introdu emailul tau!","Confirma", "");[/pawn]

[pawn]if(dialogid == 103)

{

    if(!response)

    {

        Kick(playerid);

                return 1;

    }

    else if(strlen(inputtext) >=1)

{

PlayerData[playerid][pEmail] = inputtext;

    RegistrationStep[playerid] = 4;

new query[MAX_STRING];

format(query, sizeof(query), "UPDATE players SET Email='%d' WHERE id=%d", PlayerData[playerid][pEmail], PlayerData[playerid][pSQLID]);

              mysql_query(query);

  return 1;

}

else

{

    ShowPlayerDialog(playerid,103,DIALOG_STYLE_INPUT,"{43D1D1}Email!","Introdu emailul tau!","Confirma", "");

    return 1;

}

  }[/pawn]

Ai incercat sa rezolvi singur ?: Da.

1 answer to this question

Recommended Posts

Posted

Puteti inchide topicul , multumesc de ajutorul "exagerat", intre timp am gasit alta solutie , deci nu mai e nevoie .

O zi buna !

Guest
This topic is now closed to further replies.
×
×
  • 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.