5 Dialog errors - Input line too long
#1

Код:
error 075: input line too long (after substitutions)
error 037: invalid string (possibly non-terminated string)
error 017: undefined symbol "FFFFFF"
warning 217: loose indentation
error 017: undefined symbol "Vards"
fatal error 107: too many error messages on one line
The code
Код:
public Stats(playerid,targetid)
{
	new exp = PlayerInfo[targetid][pExp];
	new level = PlayerInfo[targetid][pLevel];
	new warns = PlayerInfo[targetid][pWarn];
	new atext[20];
	if(PlayerInfo[targetid][pSex] == 1) { atext = "Virietis"; }
	else if(PlayerInfo[targetid][pSex] == 2) { atext = "Sieviete"; }
	new ptext[20], mtext[MAX_PLAYER_NAME];
	if(PlayerInfo[targetid][pPhone][0] > 0) format(ptext, sizeof(ptext), "%i", PlayerInfo[targetid][pPhone][1]);
	else format(ptext, sizeof(ptext), "Nav");
	if(PlayerInfo[targetid][pMarried] == false) format(mtext, sizeof(mtext), "Nevienu");
	else format(mtext, sizeof(mtext), "%s", PlayerInfo[targetid][pWhoMarried]);
	//////
	new coordsstring[2000];
	new msg[] = "{FFFFFF}Vards Uzvards:\t{FF9900}%s\n\n{FFFFFF}Limenis:\t\t{9ACD32}%d\n{FFFFFF}Pieredze:\t\t{9ACD32}%d/%d\n{FFFFFF}Pievienojas:\t\t{9ACD32}%s\n{FFFFFF}Bridinajumi:\t\t{9ACD32}%d\n\n\
	{FFFFFF}Skaidra nauda:\t\t$ {9ACD32}%i\n{FFFFFF}Veseliba:\t\t{9ACD32}%.1f\n{FFFFFF}(Mek) limenis:\t\t{9ACD32}%i\n{FFFFFF}Ieroci:\t\t{9ACD32}%i\n{FFFFFF}Mariuhana:\t\t{9ACD32}%i\n{FFFFFF}Telefona Nr:\t\t{9ACD32}%s\n{FFFFFF}Lauliba ar:\t\t\t{9ACD32}%s\n{FFFFFF}Dzimums:\t\t\t{9ACD32}%s\n\n{FFFFFF}Darbs:\t\t{9ACD32}%s\n{FFFFFF}Organicazija:\t\t{9ACD32}%s\n{FFFFFF}Ranks:\t\t\t{9ACD32}%s\n\n{FFFFFF}Bizness:\t\t{9ACD32}%s\n{FFFFFF}(Ipas) Maja:\t\t\t{9ACD32}%s\n{FFFFFF}(Ipas) Transports:\t\t{9ACD32}%s");
	format(coordsstring, 2000, msg, sendername(targetid),level,exp,PlayerInfo[targetid][pLevel]*8,PlayerInfo[targetid][pRegData],warns,GetMoney(targetid),PlayerInfo[targetid][pHeal],PlayerInfo[targetid][pWanted],PlayerInfo[targetid][pMats], PlayerInfo[targetid][pDrugs],ptext,mtext,atext,GetJobName(targetid),GetFracName(targetid),GetRangName(targetid)
	,(GetPlayerBizz(targetid)) ? ("Да") : ("Нет"),(GetPlayerHouse(targetid)) ? ("Да") : ("Нет"),(GetPlayerCar(targetid)) ? ("Да") : ("Нет"));
	ShowPlayerDialog(playerid,D_NULL,DIALOG_STYLE_MSGBOX,"{FF9900}Statistika:",coordsstring,"Aizvert","");
}
Any idea how to fix it? Or how to get longer lines?
Reply
#2

Try to split it then use strcat ..
Reply
#3

Any idea how to do that easy, coz im a newbie at scripting.
I don't understend much about i!t!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)