error 075: input line too long (after substitutions)
#1

Code
pawn Код:
format(string,sizeof(string),"Welcome,\n\nThis mail is sent to your on your command typing.\n\nAccount Info:\nUsername : %s\nPassword : %s\nMoney : $%d\nScore : %d\nKills : %d\nDeaths : %d\nBonus Kills : %d\nHits Completed : %d\nAD Pills : %d\nSaved Skin : %s\nPrivate Messages : %s\nDrugs : %d\nJailed : %s\nTimes Flashed : %d\n\
    Flash Kills : %d\nFlash Deaths : %d\nInsulted To Death : %d\nInsulted Kills : %d\nWeapons Kit : %s\nMafia's Money Bags Founded : %d\nLotto Wins : %d\nDays Alive : %d\nBirthdays : %d\nGender : %s\nTeleport Messages : %s\nDeath Messages : %s\nInbox : %d New Messages\nTaxes Paid : $%d\nDebt : $%d\nBank Cash : $%d\nTimes Raped : %d\
    Times Got Raped : %d\nRape Kills : %d\nRape Death : %d\n\n Be Sure To Vist Our Forums/Wbsite : %s"
,pInfo[playerid][playername],passworda[playerid],pInfo[playerid][Money],pInfo[playerid][Scores],pInfo[playerid][Kills],pInfo[playerid][Deaths],pInfo[playerid][Bonus_KILLS],pInfo[playerid][hits_completed],pInfo[playerid][Pills],savedskin,pm,pInfo[playerid][Drugs],
    jailed,pInfo[playerid][flash],pInfo[playerid][flash_kills],pInfo[playerid][flash_deaths],pInfo[playerid][foff_deaths],pInfo[playerid][foff_kills],weaponkit,pInfo[playerid][MoneyBag_Founded],pInfo[playerid][LottoWins],pInfo[playerid][DaysAlive],pInfo[playerid][birthdays],GenderNames[pInfo[playerid][pGender]],bgoto,telemsg,dmsg,
    pInfo[playerid][newmsg],pInfo[playerid][taxes_paid],pInfo[playerid][Debt],pInfo[playerid][BankMoeny],pInfo[playerid][raped],pInfo[playerid][gotraped],pInfo[playerid][rape_kills],pInfo[playerid][rape_deaths],website);
errors
pawn Код:
(8722) : error 075: input line too long (after substitutions)
(8723) : error 037: invalid string (possibly non-terminated string)
(8723) : error 017: undefined symbol "Welcome"
(8723) : error 017: undefined symbol "n"
(8723) : fatal error 107: too many error messages on one line
Reply
#2

Try this:

pawn Код:
format(string,sizeof(string),"Welcome,\n\nThis mail is sent to your on your command typing.\n\nAccount Info:\nUsername : %s\nPassword : %s\nMoney : $%d\nScore : %d\nKills : %d\nDeaths : %d\nBonus Kills : %d\nHits Completed : %d\nAD Pills : %d\nSaved Skin : %s\n
Private Messages : %s\nDrugs : %d\nJailed : %s\nTimes Flashed : %d\n\Flash Kills : %d\nFlash Deaths : %d\nInsulted To Death : %d\nInsulted Kills : %d\nWeapons Kit : %s\nMafia's Money Bags Founded : %d\nLotto Wins : %d\nDays Alive : %d\nBirthdays : %d\nGender : %s
\nTeleport Messages : %s\nDeath Messages : %s\nInbox : %d New Messages\nTaxes Paid : $%d\nDebt : $%d\nBank Cash : $%d\nTimes Raped : %d\Times Got Raped : %d\nRape Kills : %d\nRape Death : %d\n\n Be Sure To Vist Our Forums/Wbsite : %s"
,pInfo[playerid][playername],
passworda[playerid],pInfo[playerid][Money],pInfo[playerid][Scores],pInfo[playerid][Kills],pInfo[playerid][Deaths],pInfo[playerid][Bonus_KILLS],pInfo[playerid][hits_completed],pInfo[playerid][Pills],savedskin,pm,pInfo[playerid][Drugs],jailed,pInfo[playerid][flash],
pInfo[playerid][flash_kills],pInfo[playerid][flash_deaths],pInfo[playerid][foff_deaths],pInfo[playerid][foff_kills],weaponkit,pInfo[playerid][MoneyBag_Founded],pInfo[playerid][LottoWins],pInfo[playerid][DaysAlive],pInfo[playerid][birthdays],
GenderNames[pInfo[playerid][pGender]],bgoto,telemsg,dmsg,pInfo[playerid][newmsg],pInfo[playerid][taxes_paid],pInfo[playerid][Debt],pInfo[playerid][BankMoeny],pInfo[playerid][raped],pInfo[playerid][gotraped],pInfo[playerid][rape_kills],pInfo[playerid][rape_deaths],
website);
Reply
#3

no this i even bad than before the text is not coming under ""
Reply
#4

The problem is that the lines are too long, shorten them and it will fix the error.
Reply
#5

Use strcat
Reply
#6

strcat will not do the work what will i do of the values in %s or %d ??
Reply
#7

pawn Код:
format(string, sizeof (string), "%s ...", string, ...);
that's how you insert the previous string you formatted to continue with it.

pawn Код:
format(string,sizeof(string),
"Welcome,\n\nThis mail is sent to your on your command typing.\n\nAccount Info:\nUsername : %s\nPassword : %s\nMoney : $%d\nScore : %d\nKills : %d\nDeaths : %d\nBonus Kills : %d\nHits Completed : %d\nAD Pills : %d\nSaved Skin : %s\nPrivate Messages : %s\nDrugs : %d\nJailed : %s\nTimes Flashed : %d\n\Flash Kills : %d\nFlash Deaths : %d\n",
pInfo[playerid][playername],passworda[playerid],pInfo[playerid][Money],pInfo[playerid][Scores],pInfo[playerid][Kills],pInfo[playerid][Deaths],pInfo[playerid][Bonus_KILLS],pInfo[playerid][hits_completed],pInfo[playerid][Pills],savedskin,pm,pInfo[playerid][Drugs], jailed,pInfo[playerid][flash],pInfo[playerid][flash_kills],pInfo[playerid][flash_deaths]);

format(string,sizeof(string),
"%sInsulted To Death : %d\nInsulted Kills : %d\nWeapons Kit : %s\nMafia's Money Bags Founded : %d\nLotto Wins : %d\nDays Alive : %d\nBirthdays : %d\nGender : %s\nTeleport Messages : %s\nDeath Messages : %s\nInbox : %d New Messages\nTaxes Paid : $%d\nDebt : $%d\nBank Cash : $%d\nTimes Raped : %d\Times Got Raped : %d\nRape Kills : %d\nRape Death : %d\n\n Be Sure To Vist Our Forums/Wbsite : %s",
string,pInfo[playerid][foff_deaths],pInfo[playerid][foff_kills],weaponkit,pInfo[playerid][MoneyBag_Founded],pInfo[playerid][LottoWins],pInfo[playerid][DaysAlive],pInfo[playerid][birthdays],GenderNames[pInfo[playerid][pGender]],bgoto,telemsg,dmsg,pInfo[playerid][newmsg],pInfo[playerid][taxes_paid],pInfo[playerid][Debt],pInfo[playerid][BankMoeny],pInfo[playerid][raped],pInfo[playerid][gotraped],
pInfo[playerid][rape_kills],pInfo[playerid][rape_deaths],website);
If it still gives the error, split it to 3 parts instead of 2.
Reply
#8

thanks
Reply
#9

new errors F:\Game Modes\1v1_DM_Server\gamemodes\milf.pwn(8722 -- 8723) : error 027: invalid character constant
F:\Game Modes\1v1_DM_Server\gamemodes\milf.pwn(8725 -- 8726) : error 027: invalid character constant
Reply
#10

I just copied-pasted the text, that's your fault:
pawn Код:
// first:
"... \nTimes Flashed : %d\n\Flash Kills : %d\nFlash Deaths : %d\n ..."

// second:
"... \nTimes Raped : %d\Times Got Raped : %d\nRape Kills : %d\n ..."
Replace the single "\" with "\n".
Reply


Forum Jump:


Users browsing this thread: