Dialog Help.
#1

PHP код:
ShowPlayerDialog(playerid3300DIALOG_STYLE_MSGBOX "Rules","1:Cheats and hacks would get you banned.\n2:Roleplay all the time.\n3:Death match is not allowed.\n4:Metagame is not allowed.\n5:Powergame is not allowed.\n6:Revenge killing is not allowed.\n7:Bunny hopping is not allowed.\n8:Ninja jacking is prohibited.\n9:Deathmatch is not allowed.\n10:Use of abbreviations is not allowed in ic chat.\n11:Afk more than 10 minutes is not allowed.\n12:Advertising is not allowed.\n13:OOC insulting is prohibited.\n14:Racism is prohibited.\n15:Using fully captalized words in your chat is not allowed.\n16:Spam is not allowed.\n17:Don't take out heavy weapon's without rping them.\n18:Use only english in IC chat.\n19:Don't use the name of celebrities.\n20:You are not allowed to share accounts with others.""Accept","Don't Accept"); 
PHP код:
C:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\rules.pwn(92) : error 075input line too long (after substitutions)
C:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\rules.pwn(93) : error 037invalid string (possibly non-terminated string)
C:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\rules.pwn(93) : warning 215expression has no effect
C
:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\rules.pwn(93) : error 001expected token";"but found ":"
C:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\rules.pwn(93) : error 029invalid expressionassumed zero
C
:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\rules.pwn(93) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
5 Errors

These are the errors but I want to add the messages in one dialog so please help me.
Reply
#2

Hey please anyone.
Reply
#3

For the love of god, would you just SEARCH already? If you can't find it with the forum's search (because it sucks) then just USE ******!
https://www.******.be/search?q=site%...=hp&channel=np
Reply
#4

Uh! Use strcat:

pawn Код:
new str[800];
strcat(str, "1:Cheats and hacks would get you banned.\n2:Roleplay all the time.\n3:Death match is not allowed.\n4:Metagame is not allowed.\n5:Powergame is not allowed.\n6:Revenge killing");
strcat(str, " is not allowed.\n7:Bunny hopping is not allowed.\n8:Ninja jacking is prohibited.\n9:Deathmatch is not allowed.\n10:Use of abbreviations is not allowed in ic chat.\n11:Afk more");
strcat(str, " than 10 minutes is not allowed.\n12:Advertising is not allowed.\n13:OOC insulting is prohibited.\n14:Racism is prohibited.\n15:Using fully captalized words in you");
strcat(str, "r chat is not allowed.\n16:Spam is not allowed.\n17:Don't take out heavy weapon's without rping them.\n18:Use only english in IC chat.\n19:Don't use the na");
strcat(str, "me of celebrities.\n20:You are not allowed to share accounts with others.");
ShowPlayerDialog(playerid, 3300, DIALOG_STYLE_MSGBOX , "Rules",str, "Accept","Don't Accept");
Reply
#5

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
Uh! Use strcat:

pawn Код:
new str[800];
strcat(str, "1:Cheats and hacks would get you banned.\n2:Roleplay all the time.\n3:Death match is not allowed.\n4:Metagame is not allowed.\n5:Powergame is not allowed.\n6:Revenge killing");
strcat(str, " is not allowed.\n7:Bunny hopping is not allowed.\n8:Ninja jacking is prohibited.\n9:Deathmatch is not allowed.\n10:Use of abbreviations is not allowed in ic chat.\n11:Afk more");
strcat(str, " than 10 minutes is not allowed.\n12:Advertising is not allowed.\n13:OOC insulting is prohibited.\n14:Racism is prohibited.\n15:Using fully captalized words in you");
strcat(str, "r chat is not allowed.\n16:Spam is not allowed.\n17:Don't take out heavy weapon's without rping them.\n18:Use only english in IC chat.\n19:Don't use the na");
strcat(str, "me of celebrities.\n20:You are not allowed to share accounts with others.");
ShowPlayerDialog(playerid, 3300, DIALOG_STYLE_MSGBOX , "Rules",str, "Accept","Don't Accept");
this should works , try this Talha
Reply
#6

Thanks it works.+rep for both of you.
Reply
#7

thanks talha
Reply
#8

AND one more thing that how to apply a command when a player clicks the second button.I can do things with the second button but don't know how to do it with the second button.Please help.
Reply
#9

i cant understand well :\ hm
Reply
#10

Misiur was to fast :/ (lol didn't saw the 2nd page xD)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)