input line too long
#4

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
U can insert line breaks like this:

PHP код:
format(stringsizeof(string), "UPDATE `ptp` SET `Admin` = '%d', `Kills` = '%d', `Deaths` = '%d', `Ratio`\
 = '%f' ,`HoursPlayed` = '%d', `MinutesPlayed` = '%d', `SecondsPlayed` = '%d', `Score` = '%d', `Cash` =\
  '%d' WHERE `username` = '%s'"
P_Account[playerid][Admin], P_Account[playerid][Kills], P_Account[playerid][Deaths],\
   
P_Account[playerid][Ratio], P_Account[playerid][HoursPlayed], P_Account[playerid][MinutesPlayed], \
   
P_Account[playerid][SecondsPlayed], P_Account[playerid][Score], P_Account[playerid][Cash]); 
I'm pretty sure these slashes are not needed.
What you can also do is break the string into pieces like this:
Код:
format(string, sizeof(string), "item1 = 1, item2 = 2);
format(string, sizeof(string), %s, item3 = 3, item4 = 4, string);
Reply


Messages In This Thread
input line too long - by XStormiest - 15.01.2017, 18:10
Re: input line too long - by Eoussama - 15.01.2017, 18:11
Re: input line too long - by BiosMarcel - 15.01.2017, 18:57
Re: input line too long - by GoldenLion - 15.01.2017, 19:01
Re: input line too long - by BiosMarcel - 15.01.2017, 19:14
Re: input line too long - by Vince - 15.01.2017, 19:16
Re: input line too long - by oMa37 - 15.01.2017, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)