Dialog problem
#1

Hello..i was working on my gamemode..and when i added /rules to dialog check wut i got xd
Код:
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(296) : error 075: input line too long (after substitutions)
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(297) : error 037: invalid string (possibly non-terminated string)
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(297) : error 017: undefined symbol "Ignor"
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : error 017: undefined symbol "e"
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : warning 215: expression has no effect
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : error 001: expected token: ";", but found ")"
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
line from 295 to 299
PHP код:
            if(strcmp("/rules"cmdtexttrue10) == 0)
            {
                    
ShowPlayerDialog(playerid,2DIALOG_STYLE_MSGBOX"Rules:""1.)Do Not Hack/Cheat/Mods\n2.)Respect Admins And Players\n3.)Do Not Ask To Be Admin We Choosing Admins\n4.)Do Not Use Admin Account And Try To Use It\n5.)No Insulting, Flamming The Admins\n6.)Spawn Killing is Not Allowed (Except on DM)\n7.)Dont AFK on Spawnpoint or Spawn Areas\n8.)Dont Carjack Any Player Specially Admins And Leaders\n\nIf you break those rules you may Punishment by Our Server Administrators""Accept""Ignore");
                    return 
1;
            } 
Reply
#2

Well, i think the msgbox is too much long. To solve this problem use strcat.
Reply
#3

your line is too long
use strcat
Код:
 if(strcmp("/rules", cmdtext, true, 10) == 0)
{
	new Rules[500];
	strcat(Rules, "1.)Do Not Hack/Cheat/Mods\n2.)Respect Admins And Players\n3.)Do Not Ask To Be Admin We Choosing Admins\n");
	strcat(Rules, "4.)Do Not Use Admin Account And Try To Use It\n5.)No Insulting, Flamming The Admins\n6.)Spawn Killing is Not Allowed (Except on DM)\n");
	strcat(Rules, "7.)Dont AFK on Spawnpoint or Spawn Areas\n");
	strcat(Rules, "8.)Dont Carjack Any Player Specially Admins And Leaders\n\nIf you break those rules you may Punishment by Our Server Administrators");
	ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Rules:", Rules, "Accept", "Ignore");
	return 1;
}
Reply
#4

Quote:
Originally Posted by Younes44
Посмотреть сообщение
Hello..i was working on my gamemode..and when i added /rules to dialog check wut i got xd
Код:
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(296) : error 075: input line too long (after substitutions)
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(297) : error 037: invalid string (possibly non-terminated string)
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(297) : error 017: undefined symbol "Ignor"
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : error 017: undefined symbol "e"
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : warning 215: expression has no effect
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : error 001: expected token: ";", but found ")"
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\Younes\-\Nouveau doss4ier\Nouveau dossier\CpasfdO\yes.pwn(298) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
line from 295 to 299
PHP код:
            if(strcmp("/rules"cmdtexttrue10) == 0)
            {
                    
ShowPlayerDialog(playerid,2DIALOG_STYLE_MSGBOX"Rules:""1.)Do Not Hack/Cheat/Mods\n2.)Respect Admins And Players\n3.)Do Not Ask To Be Admin We Choosing Admins\n4.)Do Not Use Admin Account And Try To Use It\n5.)No Insulting, Flamming The Admins\n6.)Spawn Killing is Not Allowed (Except on DM)\n7.)Dont AFK on Spawnpoint or Spawn Areas\n8.)Dont Carjack Any Player Specially Admins And Leaders\n\nIf you break those rules you may Punishment by Our Server Administrators""Accept""Ignore");
                    return 
1;
            } 
You can use it like this.

PHP код:

if(strcmp("/rules"cmdtexttrue10) == 0)
{
    new 
qstring[700];
    
strcat(qstring," 1.)Do Not Hack/Cheat/Mods\n2.)Respect Admins And Players\n3.)Do Not Ask To Be Admin We Choosing Admins\n4.)Do Not Use Admin Account And Try To Use It");
    
strcat(qstring,"\n5.)No Insulting, Flamming The Admins\n6.)Spawn Killing is Not Allowed (Except on DM)\n7.)Dont AFK on Spawnpoint or Spawn Areas\n8.)Dont Carjack Any Player Specially Admins And Leaders\n\nIf you break those rules you may Punishment by Our Server Administrators");
    
ShowPlayerDialog(playerid,2DIALOG_STYLE_LIST"Rules:"qstring"Accept""Ignore");
return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)