Help On PlayerShowDialog
#1

what wrong on this script ?

Код:
if (strcmp("/rules", cmdtext, true) == 0)
	{
		ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "{F81414}Server Rules", "- Cheating (banned)\n- Spamming (jail/mute)\n- Farming(banned)\n- Insulting (kicked)\n- G Abuse (jail/kicked)\n- Drive By Kill No Reason (jail/kicked)\n- Acces Admin Command (banned)\n- Acces Login Rcon (banned)\n- Spawn Hydra At Teleport Place (jail/kicked)\n- Advertise Abuse (kicked)\n -Advertise Server IP (banned)\n- AFK In Minigame (kicked)\n- Vortex Drive By Kill (reset/banned)\n\nDo you agree to these rules?", "Yes", "No");
		return 1;
	}
Код:
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(635) : error 075: input line too long (after substitutions)
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(636) : error 037: invalid string (possibly non-terminated string)
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : warning 217: loose indentation
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : error 017: undefined symbol "Yes"
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : warning 215: expression has no effect
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : error 017: undefined symbol "No"
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : fatal error 107: too many error messages on one line

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


6 Errors.
Reply
#2

Quote:
Originally Posted by AgusZ
Посмотреть сообщение
what wrong on this script ?

Код:
if (strcmp("/rules", cmdtext, true) == 0)
	{
		ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "{F81414}Server Rules", "- Cheating (banned)\n- Spamming (jail/mute)\n- Farming(banned)\n- Insulting (kicked)\n- G Abuse (jail/kicked)\n- Drive By Kill No Reason (jail/kicked)\n- Acces Admin Command (banned)\n- Acces Login Rcon (banned)\n- Spawn Hydra At Teleport Place (jail/kicked)\n- Advertise Abuse (kicked)\n -Advertise Server IP (banned)\n- AFK In Minigame (kicked)\n- Vortex Drive By Kill (reset/banned)\n\nDo you agree to these rules?", "Yes", "No");
		return 1;
	}
Код:
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(635) : error 075: input line too long (after substitutions)
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(636) : error 037: invalid string (possibly non-terminated string)
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : warning 217: loose indentation
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : error 017: undefined symbol "Yes"
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : warning 215: expression has no effect
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : error 017: undefined symbol "No"
C:\Users\Agus Purwantoro\Desktop\Samp\filterscripts\map.pwn(637) : fatal error 107: too many error messages on one line

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


6 Errors.
its just too long, its even sayin that its too long, bagging to be shortened....
Код:
error 075: input line too long (after substitutions)
shorten the input line by using strcat, dividing it into smaller lines.

example:
pawn Код:
new str[20];//adjust thesize to your needs. that should be obvious, i know... but heck.. i've seen so much here...
strcat(str,"hey hey!! 1st line!\n");
strcat(str,"Im on 2nd line!!! :D\n");
//and so on...
ShowPlayerDialog(playerid, dialogid, style, "some title", str, "OK", "");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)