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

pawn Код:
format(query,sizeof(query),"UPDATE players SET  \
    Level = %d ,  \
    Hours = %d ,  \
    Minutes = %d ,  \
    Checks = %d ,  \
    Admin = %d ,  \
    Helper = %d ,  \
    Donator = %d ,  \
    Health = %d ,  \
    Armor = %d ,  \
    Money = %d ,  "
, /*values*/);
   
    format(query,sizeof(query),"%sBank = %d ,  \
    Sandwiches = %d ,  \
    Hotdogs = %d ,  \
    Apples = %d ,  \
    Sodas = %d ,  \
    Skin = %d ,  \
     Accent = '%s' ,  \
     X = %f ,  \
     Y = %f ,  \
     Z = %f ,  \
     Angle = %f ,  "
,query, /*values*/);
     
     format(query,sizeof(query),"%sFaction = '%d' ,  \
     `Faction rank` = %d ,  \
     `Faction division` = %d ,  \
     `Faction leader` = %d ,  \
     Prisons = %d ,  \
     Warnings = %d ,  \
     Kicks = %d ,  \
    `Temp.Bans` = %d ,  \
    `Perm.Bans` = %d  \
    WHERE Username = '%s'"
, query, /*values*/);
Just split it using multiple fomats. Or you may use strcat.

/*values*/ means to values of arguments.
Reply


Messages In This Thread
error 075: input line too long (after substitutions) - by SandKing94 - 04.06.2015, 08:56
Re: error 075: input line too long (after substitutions) - by BroZeus - 04.06.2015, 09:14
Re: error 075: input line too long (after substitutions) - by SandKing94 - 04.06.2015, 09:19
Re: error 075: input line too long (after substitutions) - by Gammix - 04.06.2015, 11:41
Re: error 075: input line too long (after substitutions) - by Bester - 04.06.2015, 16:22

Forum Jump:


Users browsing this thread: 2 Guest(s)