Dialog does not show completely
#1

Is it because I have too many words in the
Код:
message & message2?
PHP код:
new message[] = "1 - No cheating or any kind of modification (3rd party applications)\n2 - No flaming, racism or any sort of discrimination towards any other player\n3 - No spamming/flooding";
    new 
message2[] = "\n4 - Avoid the unnecessary use of sexual language\n5 - Abusing of server bugs is not allowed and should be reported immediately\n6 - Player's should use /report instead of shouting hackers into the chatbox\n7 - Respect every players in the server\n8 - No ramming (Does not apply in some cases)\n9 - No Deathmatching(Does not apply in some cases)";
    new 
string[150];
    
format(stringsizeof(string),"%s %s",message,message2);
    
ShowPlayerDialog(playerid10DIALOG_STYLE_MSGBOX,"\t\tRules",string,"Agree",""); 
Reply
#2

pawn Код:
new string[512];
Reply
#3

Thanks it worked like a charm, and where can I find some tutorials about strings, or how many bytes i'll use in a string?
Reply
#4

Is about how many letters you have.
Reply
#5

Two interesting topics ...

https://sampforum.blast.hk/showthread.php?tid=55261
https://sampforum.blast.hk/showthread.php?tid=216730
Reply
#6

You can use just 1 variable:
PHP код:
new message[1024] = "1 - No cheating or any kind of modification (3rd party applications)\n2 - No flaming, racism or any sort of discrimination towards any other player\n";
        
format(messagesizeof(message), "%s3 - No spamming/flooding\n4 - Avoid the unnecessary use of sexual language\n5 - Abusing of server bugs is not allowed and should be"message);
        
format(messagesizeof(message), "%s reported immediately\n6 - Player's should use /report instead of shouting hackers into the chatbox\n7 - Respect every"message);
        
format(messagesizeof(message), "%s players in the server\n8 - No ramming (Does not apply in some cases)\n9 - No Deathmatching(Does not apply in some cases)"message);
        
ShowPlayerDialog(playerid10DIALOG_STYLE_MSGBOX,"\t\tRules",message,"Agree",""); 
Reply
#7

[ame]http://www.youtube.com/watch?v=SHcLP0mwjkE[/ame]
Reply
#8

Every character (including spaces) takes up 1 cell. If you're sending a client message, then you should just go with 128 unless you know that your string is a lot smaller than that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)