28.08.2014, 14:14
Hi!
so the faction names in the .db were as such:
LSPD
LSFMD
FBI
then when I did the command /editfaction, typed in faction id 1 (LSPD) and changed name
they turned into some weird line.
so the faction names in the .db were as such:
LSPD
LSFMD
FBI
then when I did the command /editfaction, typed in faction id 1 (LSPD) and changed name
they turned into some weird line.
pawn Код:
case EDITFACTION_NAME:
{
new string[256];
if(!response)
{
SendClientMessage(playerid, -1, "Your no longer going to edit a faction.");
return 1;
}
else {
new value = PlayerInfo[playerid][EditFaction];
format(string, sizeof(string), "UPDATE `Groups` SET `Name`='%s' WHERE `GroupID`='%i'", strval(inputtext), value);
db_free_result(db_query(Database, string));
printf("Faction name: %s:", value);
ReloadFactions();
/*format(string, sizeof(string), "Your entering faction ID: %s", inputtext);
SendClientMessage(playerid, -1, string);
PlayerInfo[playerid][EditFaction] = strval(inputtext);*/
}
}