Jump to content

[REZOLVAT] Problema easyDialog


Xenon
 Share

Recommended Posts

Username: Xenon
Problema întălnită: 
Detalii despre problemă:

D:\Project's\SAMP\RPG\pawno\include\easyDialog.inc(95) : error 035: argument type mismatch (argument 4)
D:\Project's\SAMP\RPG\pawno\include\easyDialog.inc(99) : error 035: argument type mismatch (argument 4)


Ce ai încercat să faci înainte să postezi?: Sa caut pe net
Cod sursă (recomandat pastebin.com) : https://pastebin.com/Q5G0Tyxj
Alte detalii: Va rog ajutatima.

Link to comment
Share on other sites

Incearca sa inlocuiesti:

ShowPlayerDialog(playerid, 32700, style, caption, string, button1, button2);

cu:

ShowPlayerDialog(playerid, 32700, style, caption[], string, button1[], button2[]);

Edited by MuskWannabe
Link to comment
Share on other sites

Din cate stiu la easyDialog nu se denumeste asa dialogul Ex: "LOGIN" si cred ca DIALOG_LOGIN

PawnCode: 

    mysql_format( SQL, gQuery, sizeof gQuery, "SELECT * FROM `accounts` WHERE `Name` = '%s' LIMIT 1", getName( playerid ) );
 
    inline checkAccount() {
 
        if( !cache_num_rows( ) )
            return Dialog_Show( playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "REGISTER STAGE:", "Bine ai venit, %s!\nScrie o parola pentru a te inregistra:", "Register", "Quit", getName( playerid ) );
 
        new lastLogin[ 64 ]; cache_get_field_content( 0, "LastLogin", lastLogin );
 
        Dialog_Show( playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "LOGIN STAGE:", "Bine ai revenit, %s!\nScrie mai jos parola contului tau:\nUltima logare: %s", "Login", "Quit", getName( playerid ), lastLogin );
 
        return true; }
 
    mysql_tquery_inline( SQL, gQuery, using inline checkAccount, "d", playerid );

Link to comment
Share on other sites

Acum 19 minute, SorinGamerYT a spus:

Din cate stiu la easyDialog nu se denumeste asa dialogul Ex: "LOGIN" si cred ca DIALOG_LOGIN

PawnCode: 

    mysql_format( SQL, gQuery, sizeof gQuery, "SELECT * FROM `accounts` WHERE `Name` = '%s' LIMIT 1", getName( playerid ) );
 
    inline checkAccount() {
 
        if( !cache_num_rows( ) )
            return Dialog_Show( playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "REGISTER STAGE:", "Bine ai venit, %s!\nScrie o parola pentru a te inregistra:", "Register", "Quit", getName( playerid ) );
 
        new lastLogin[ 64 ]; cache_get_field_content( 0, "LastLogin", lastLogin );
 
        Dialog_Show( playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "LOGIN STAGE:", "Bine ai revenit, %s!\nScrie mai jos parola contului tau:\nUltima logare: %s", "Login", "Quit", getName( playerid ), lastLogin );
 
        return true; }
 
    mysql_tquery_inline( SQL, gQuery, using inline checkAccount, "d", playerid );

tot nu merge este ceva de la argumentul 4

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...