Little MySql Error
#3

pawn Код:
SaveGang(id)
{
    new querygang[1024];
    format(querygang, sizeof(querygang), "UPDATE `gangs` SET `Nome` = '%s',  `Lider` = '%s', `Membro0` = '%s', `Membro1` = '%s', `Membro2` =  '%s', `Membro3` = '%s', `Membro4` =  '%s', `Membro5` = '%s',", Gang[id][gangname], Gang[id][Lider], Gang[id][Membro0], Gang[id][Membro1], Gang[id][Membro2], Gang[id][Membro3], Gang[id][Membro4], Gang[id][Membro5]);
    format(querygang, sizeof(querygang), "%s `Membro6` = '%s', `Membro7` = '%s', `Membro8` =  '%s', `Membro9` = '%s', `Kills` = '%d', `Deaths` = '%d', `GCor` = '%s' WHERE `id` = '%d';", querygang, Gang[id][Membro6], Gang[id][Membro7], Gang[id][Membro8], Gang[id][Membro9], Gang[id][Kills], Gang[id][Deaths], Gang[id][GCor], id);
    mysql_query(mysql, querygang, false);
    return 1;
}
No need for strcat as you're already including the first part of the string at the beginning of the second one.
Reply


Messages In This Thread
Little MySql Error - by sheNdjze - 23.06.2015, 05:42
Re: Little MySql Error - by Eth - 23.06.2015, 06:32
Re: Little MySql Error - by SloProKiller - 23.06.2015, 08:37
Re: Little MySql Error - by sheNdjze - 23.06.2015, 15:53
Re: Little MySql Error - by sheNdjze - 23.06.2015, 16:48
Re: Little MySql Error - by iggy1 - 23.06.2015, 17:08
Re: Little MySql Error - by sheNdjze - 23.06.2015, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)