input line too long (after substitutions)
#3

You can break the line as long it ends with a comma, not in a string

pawn Code:
format(Query, sizeof(Query),
  "INSERT INTO `USERS` (`NAME`, `PASSWORD`, `IP`, `SCORE`, `CASH`, `ADMINLEVEL`, `KILLS`, `DEATHS`, `VIPLEVEL`, `Hours`, `Minutes`, `Seconds`, `RegisteredDate`, `LastX`, `LastY`, `LastZ`, `Interior`, `Armour`, `Health`, `GamingPoints`, `Wantedlevel`, `Skin`, `FightStyle`, `LastOn`) VALUES('%s','%s','%s', '0', '500', '0', '0', '0', '0', '0', '0', '0', '%s', '0', '0', '0', '0', '0', '0', '0', '0', '%d', '%s', '0')",
  name, inputtext, ip, strdate, Skin, GetPlayerFightStyleName(playerid)); // Error line (250)
Try this.

@ TTJJ: That's bullshit. It would just copy a string. For such things you should use strcat...
Reply


Messages In This Thread
input line too long (after substitutions) - by Linus- - 30.08.2011, 13:14
Re: input line too long (after substitutions) - by TTJJ - 30.08.2011, 13:18
Re: input line too long (after substitutions) - by Jochemd - 30.08.2011, 13:18
Re: input line too long (after substitutions) - by [MWR]Blood - 30.08.2011, 13:18
Re: input line too long (after substitutions) - by AndreT - 30.08.2011, 13:20
Re: input line too long (after substitutions) - by Linus- - 30.08.2011, 13:20
Re: input line too long (after substitutions) - by Jochemd - 30.08.2011, 13:22
Re: input line too long (after substitutions) - by JaTochNietDan - 30.08.2011, 13:25

Forum Jump:


Users browsing this thread: 3 Guest(s)