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

Hey guys,
I got a problem with a couple errors, and im not sure how to fix this, since i dont see any problems. I also never had this error, so dont really have a clue what it means.

pawn Код:
format( string, sizeof string, "Name: %s \
                                    \nIP adress: %d \
                                    \nTotal kills: %i \
                                    \nTotal deaths: %i \
                                    \nTotal K/D ratio: %0.2f \
                                    \nAdmin level: %i (%s) \
                                    \nVip level: %i (%s) \
                                    \nUse your own weapons: %s \
                                    \nHighest killstreak: %i \
                                    \nTotal commands used: %i "
,    GetName(playerid), \
                                                                    GetPIP(playerid), \
                                                                    PlayerInfo[playerid][pKills], \
                                                                    PlayerInfo[playerid][pDeaths], \
                                                                    Float:floatdiv( PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths] ), \
                                                                    PlayerInfo[playerid][pAdmin], \
                                                                    AdminInfo, \ // 1304
                                                                    PlayerInfo[playerid][pVip], \ // 1305
                                                                    VipInfo, \
                                                                    UseOwnInfo, \
                                                                    PlayerInfo[playerid][pHighestKS], \
                                                                    PlayerInfo[playerid][pCMD]); // 1310
Код:
(1304) : error 075: input line too long (after substitutions)
(1305) : error 017: undefined symbol "pl"
(1310) : warning 217: loose indentation
(1310) : error 017: undefined symbol "ayerid"
(1310) : error 029: invalid expression, assumed zero
(1310) : error 029: invalid expression, assumed zero
(1310) : fatal error 107: too many error messages on one line
~Wesley

Edit: The string isnt to short, i just made the size to [512] and still having the same problem!
Reply
#2

Use strcat
https://sampwiki.blast.hk/wiki/Strcat
Reply
#3

pawn Код:
format( string, sizeof string, "\
                                Name: %s \
                                \nIP adress: %d \
                                \nTotal kills: %i \
                                \nTotal deaths: %i \
                                \nTotal K/D ratio: %0.2f \
                                \nAdmin level: %i (%s) \
                                \nVip level: %i (%s) \
                                \nUse your own weapons: %s \
                                \nHighest killstreak: %i \
                                \nTotal commands used: %i "
,
                                GetName(playerid),
                                GetPIP(playerid),
                                PlayerInfo[playerid][pKills],
                                PlayerInfo[playerid][pDeaths],
                                Float:floatdiv( PlayerInfo[playerid][pKills],
                                PlayerInfo[playerid][pDeaths] ),
                                PlayerInfo[playerid][pAdmin],
                                AdminInfo,
                                PlayerInfo[playerid][pVip],
                                VipInfo,
                                UseOwnInfo,
                                PlayerInfo[playerid][pHighestKS],
                                PlayerInfo[playerid][pCMD]);
Or check this Strcat.

Edit: Too late .
Reply
#4

Thanks
Reply
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
Doing "\" on the end of a line merges that line with the next line, which is why you need to do it with strings. However, as the two lines are now merged they are together subject to the line length limit of 511 (512 with EOL) (this is a compiler restriction and nothing to do with string lengths). The solution you got works as parameters do not all have to be on the same line.
I did it with another dialog like this aswell, and didnt gave me the error, so i thought this wouldnt give me an error. Also i didnt know that the params didnt have to be on the same line. Thanks for the info
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)