SA-MP Forums Archive
[Ajuda] textdraws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] textdraws (/showthread.php?tid=596361)



textdraws - Lucas_HenryK - 16.12.2015

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?