Few errors I cannot understand why appear.
#1

Quote:

new query[256];
format(query, sizeof(query),"INSERT INTO `Factions` (`FactionName`, `FactionRank1`,`FactionRank2`, `FactionRank3`, `FactionRank4`, `FactionRank5`, `FactionRank6`,\
`FactionRank7`, `FactionSkin1`, `FactionSkin2`, `FactionSkin3`, `FactionSkin4`, `FactionSkin5`, `FactionSkin6`, `FactionSkin7`, \
`FactionSkin8`, `FactionSkin9`, `FactionSkin10`, `FactionEntX`, `FactionEntY`,\
`FactionEntZ`, `FactionIntX`, `FactionIntY`, `FactionIntZ`,`SpawnX`,`SpawnY`,`SpawnZ`, `FactionInt`, \
`FactionBank`) VALUES ('%s',0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1, %f, %f, %f, 0, 0, 0, 0, 0, 0, -1, 1000000)"\ , factionname, x, y, z);
mysql_query(query);

As you can see I've tried moving onto new lines and it makes no difference.

Quote:

C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(586) : error 075: input line too long (after substitutions)
C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(587) : error 037: invalid string (possibly non-terminated string)
C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(587) : error 017: undefined symbol "INSERT"
C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(587) : error 017: undefined symbol "INTO"
C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(587) : fatal error 107: too many error messages on one line

Errors.


Help would be appreciated.
Reply
#2

Searching would be appreciated. http://forum.sa-mp.com/showthread.ph...+line+too+long
Reply
#3

I have already searched.
Reply
#4

Use strcat( ) for long lines.
Reply
#5

Example:

pawn Код:
new string[1024];
strcat(string, "Hi Long String1");
strcat(string, "Hi Long String2");
strcat(string, "Hi Long String3");
strcat(string, "Hi Long String4");
strcat(string, "Hi Long String5");
SendClientMessage(playerid, -1, string);
:d
Good Luck.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)