04.06.2015, 11:41
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*/);
/*values*/ means to values of arguments.