space in commands
#1

I don't know why but I have this space in my admin command dialog I can't seem to find the problem though..

Код:
	 if(pInfo[playerid][Admin] == 1)
	 {
       ShowPlayerDialog(playerid, 511, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap", "Ok", "Close");
	   
	 }
	 if(pInfo[playerid][Admin] == 2)
	 {
       ShowPlayerDialog(playerid, 512, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap\n{EFB509}Level 2{FFFFFF}: /ban, /freeze, /unfreeze, /get, /goto", "Ok", "Close");
	   
	 }
  	 if(pInfo[playerid][Admin] == 3)
	 {
       ShowPlayerDialog(playerid, 513, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap\n\n{EFB509}Level 2{FFFFFF}: /ban, /freeze, /unfreeze, /get, /goto\n{EFB509}Level 3{FFFFFF}: /lock, /setlevel, /rangeban, /vehicle, /god", "Ok", "Close");
	   
	 }
Reply
#2

Код:
	 if(pInfo[playerid][Admin] == 1)
	 {
       ShowPlayerDialog(playerid, 511, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap", "Ok", "Close");
	   
	 }
	 if(pInfo[playerid][Admin] == 2)
	 {
       ShowPlayerDialog(playerid, 512, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap\n{EFB509}Level 2{FFFFFF}: /ban, /freeze, /unfreeze, /get, /goto", "Ok", "Close");
	   
	 }
  	 if(pInfo[playerid][Admin] == 3)
	 {
       ShowPlayerDialog(playerid, 513, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap\n\n{EFB509}Level 2{FFFFFF}: /ban, /freeze, /unfreeze, /get, /goto\n{EFB509}Level 3{FFFFFF}: /lock, /setlevel, /rangeban, /vehicle, /god", "Ok", "Close");
	   
	 }
Try
Код:
	 if(pInfo[playerid][Admin] == 1)
	 {
       ShowPlayerDialog(playerid, 511, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap", "Ok", "Close");
	   
	 }
	 if(pInfo[playerid][Admin] == 2)
	 {
       ShowPlayerDialog(playerid, 512, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap\n{EFB509}Level 2{FFFFFF}: /ban, /freeze, /unfreeze, /get, /goto", "Ok", "Close");
	   
	 }
  	 if(pInfo[playerid][Admin] == 3)
	 {
       ShowPlayerDialog(playerid, 513, DIALOG_STYLE_MSGBOX, "Admin commands", "{EFB509}Level 1{FFFFFF}: /aspec, /specoff, /asay, /mute, /achat, /kick, /slap\n{EFB509}Level 2{FFFFFF}: /ban, /freeze, /unfreeze, /get, /goto\n{EFB509}Level 3{FFFFFF}: /lock, /setlevel, /rangeban, /vehicle, /god", "Ok", "Close");
	   
	 }
Reply
#3

thanks, how'd u fix it?
Reply
#4

Dude, don't simply copy paste, actually review what you're putting in...

He found
Код:
, /achat, /kick, /slap\n\n{EFB509}Level 2{FFFFFF}: /ban,
where it should've been
Код:
, /achat, /kick, /slap\n{EFB509}Level 2{FFFFFF}: /ban,
You had 2 /n in a row, causing it to happen. He even highlighted it in red.


It may have been hard to see, but just bare in mind you want to learn this, rather than simply blindly copy-paste.

A good program for this, is Diff. Compares texts between files/inputs.

https://www.diffchecker.com/
Reply
#5

ok thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)