[Ajuda] textdraws
#1

pawn Код:
public OnPlayerConnect(playerid) {
    ResetVariables(playerid);
   
    ShowMainTexts(playerid);
    SelectTextDraw(playerid, 0xFF0000FF);
   
    if(pData[playerid][P_Logged] == false) {
        new Query[60],AS[256];
        format(Query, sizeof(Query),"SELECT * FROM Accounts WHERE Name = '%s'", GetName(playerid));

        mysql_query(MySQL, Query);
        mysql_store_result();

        if(mysql_num_rows() != 0) {
            format(AS, sizeof(AS), "Your account is ~g~Registered~n~~w~~h~Click in the button for login.");
            TextDrawSetString(MainTexts[11], AS);
           
            format(AS, sizeof(AS), "~w~  LOG IN ACCOUNT");
            TextDrawSetString(MainTexts[16], AS);
        } else {
            format(AS, sizeof(AS), "Your account is ~y~New account~n~~w~~h~Click in the button for register.");
            TextDrawSetString(MainTexts[11], AS);
           
            format(AS, sizeof(AS), "~w~  REGISTER ACCOUNT");
            TextDrawSetString(MainTexts[16], AS);
        }
        mysql_free_result();
    } else {
        pData[playerid][P_Logged] = true;
    }
    return 1;
}
o problema e quem sempre diz:

Your account is ~y~New account~n~~w~~h~Click in the button for register.

mesmo entao registrado aparece essa mensagem.. ta tudo certo com o mysql.. vcs tem noзгo do que seja?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)