SA-MP Forums Archive
Dialog doesn't properly load the whole string - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog doesn't properly load the whole string (/showthread.php?tid=613149)



Dialog doesn't properly load the whole string - justjamie - 25.07.2016

Title.

Code:

PHP код:
/* ============================================================================= */
forward playerConnectBan1(playerid);
public 
playerConnectBan1(playerid) {
    if(
cache_num_rows()) {
        new 
admin[25], reason[256], time[256], date[256];
        
cache_get_field_content(0"Admin"admin);
        
cache_get_field_content(0"Reason"reason);
        
cache_get_field_content(0"Time"time);
        
cache_get_field_content(0"Date"date);
        
ShowPlayerDialog(playerid1337DIALOG_STYLE_MSGBOX"{6f757d}Syndicate Roleplay {FFFFFF}-> {6f757d}Banned"sprintf("{FFFFFF}You have been banned from {6f757d}Syndicate Roleplay{FFFFFF}.\n\n\
            {6f757d}-> {FFFFFF}Admin: %s\n{6f757d}-> {FFFFFF}Reason: %s\n{6f757d}-> {FFFFFF}Time: %s{6f757d} - {FFFFFF}%s\n\nPlease take a screenshot ({6f757d}F8{FFFFFF}) of this dialog - you will not get unbanned without a screenshot.\
                "
adminreasontimedate), "Close""");
                
SetTimerEx("kickPlayer"1000false"d"playerid);
    } else {
        new 
query[144]; mysql_format(connectionquerysizeof(query), "SELECT * FROM accounts WHERE Username = '%s'"Name(playerid)); mysql_tquery(connectionquery"playerConnect1""d"playerid);
    }
    return 
1;

what appears:



Re: Dialog doesn't properly load the whole string - Dayrion - 25.07.2016

I think the size of the string is too smaller.


Re: Dialog doesn't properly load the whole string - justjamie - 25.07.2016

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
I think the size of the string is too smaller.
it worked before, by the way, it isn't a string, it's right in the ShowPlayerDialog

EDIT: ok wow thats the whole problem, added everything in a string and now it worked


// fixed