Проблема с загрузкой и сохранением | MySQL R7
#5

Quote:
Originally Posted by Be$$0n
Посмотреть сообщение
pawn Код:
mysql_function_query(g_ConnectionHandle, "SELECT * FROM `"FactionTable"`", true, "LoadFactionsCallback", "");

Где потерял ?
pawn Код:
stock SaveFaction(factid)
{
    new query[550];
    format(query,550,"UPDATE "FactionTable" SET Name='%s',SpawnX='%f',SpawnY='%f',SpawnZ='%f',SpawnA='%f',Rank1='%s',Rank2='%s',Rank3='%s',Rank4='%s',Rank5='%s',Rank6='%s',Rank7='%s',Rank8='%s',Rank9='%s',Rank10='%s',Rank11='%s',Rank12='%s',Rank13='%s',Rank14='%s',Rank15='%s' WHERE ID = %d",
    szFaction[factid][fName],
    szFaction[factid][fSpawnX],
    szFaction[factid][fSpawnY],
    szFaction[factid][fSpawnZ],
    szFaction[factid][fSpawnA],
    szFactionRank[factid][0],
    szFactionRank[factid][1],
    szFactionRank[factid][2],
    szFactionRank[factid][3],
    szFactionRank[factid][4],
    szFactionRank[factid][5],
    szFactionRank[factid][6],
    szFactionRank[factid][7],
    szFactionRank[factid][8],
    szFactionRank[factid][9],
    szFactionRank[factid][10],
    szFactionRank[factid][11],
    szFactionRank[factid][12],
    szFactionRank[factid][13],
    szFactionRank[factid][14],
    factid);
    mysql_function_query(g_ConnectionHandle, query, false, "", "");
    printf("Организация [%d] успешно сохранена.");
    return true;
}
factid
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)