Dialog doesn't properly load the whole string
#1

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:
Reply
#2

I think the size of the string is too smaller.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)