[SQLite] Factions wont change name
#3

pawn Код:
format(string, sizeof(string), "UPDATE `Groups` SET `Name`='%s' WHERE `GroupID`='%i'", strval(inputtext), value);
`Name`='%s' is a string and you use strval.

The right query:
pawn Код:
format(string, sizeof(string), "UPDATE `Groups` SET `Name`='%s' WHERE `GroupID`='%i'", inputtext, value);
And here, value is integer, not a string.
pawn Код:
printf("Faction name: %s:", value);
Reply


Messages In This Thread
[SQLite] Factions wont change name - by JordanDoughty - 28.08.2014, 14:14
Re: [SQLite] Factions wont change name - by JordanDoughty - 28.08.2014, 19:08
Re : [SQLite] Factions wont change name - by MisterMania67 - 28.08.2014, 20:06
Re: [SQLite] Factions wont change name - by JordanDoughty - 28.08.2014, 20:15
Re: [SQLite] Factions wont change name - by MattTucker - 28.08.2014, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)