08.05.2013, 07:36
Hey, I'm getting errors again...
pawn Код:
stock SaveFactions(factionid)
{
new query[1000];
format(query, sizeof(query), "UPDATE `Factions` SET `FactionName` = '%s', `CommandTypes` = %d, `RankName1` = '%s', `RankName2` = '%s', `RankName3` = '%s', `RankName4` = '%s', `RankName5` = '%s', `RankName6` = '%s',`RankName7` = '%s', `Skin1` = %d, `Skin2` = %d, `Skin2` = %d, `Skin3` = %d, `Skin4` = %d, `Skin5` = %d, `Skin6` = %d, `Skin7` = %d, `HQInteriorID` = %d, `HQInteriorX` = '%f', `HQInteriorY` = '%f', `HQInteriorZ` = '%f', `HQInteriorA` = '%f', `HQExteriorID` = %d, `HQExteriorX` = '%f', `HQExteriorY` = '%f', `HQExteriorZ` = '%f', `HQExteriorA` = '%f', `SafeInteriorID` = %d, `SafeX`= '%f', `SafeY` = '%f', `SafeZ` = '%f', `SafeWorld` = %d, `HQLock` = %d, `FOwner` = '%s', WHERE `FactionID` = %d",
Faction[factionid][FactionName],
Faction[factionid][RankName1],
Faction[factionid][RankName2],
Faction[factionid][RankName3],
Faction[factionid][RankName4],
Faction[factionid][RankName5],
Faction[factionid][RankName6],
Faction[factionid][RankName7],
Faction[factionid][Skin1],
Faction[factionid][Skin2],
Faction[factionid][Skin3],
Faction[factionid][Skin4],
Faction[factionid][Skin5],
Faction[factionid][Skin6],
Faction[factionid][Skin7],
Faction[factionid][HQInteriorID],
Faction[factionid][HQInteriorX],
Faction[factionid][HQInteriorY],
Faction[factionid][HQInteriorZ],
Faction[factionid][HQInteriorA],
Faction[factionid][HQExteriorID],
Faction[factionid][HQExteriorX],
Faction[factionid][HQExteriorY],
Faction[factionid][HQExteriorZ],
Faction[factionid][HQExteriorA],
Faction[factionid][SafeInteriorID],
Faction[factionid][SafeX],
Faction[factionid][SafeY],
Faction[factionid][SafeZ],
Faction[factionid][SafeWorld],
Faction[factionid][HQLock],
Faction[factionid][FOwner],
factionid,
mysql_function_query(connectionHandle, query, false, "DefaultCallback", "");
return 1;
}
Код:
C:\Users\User\Desktop\GTA RP Script\gamemodes\RolePlay.pwn(2050) : error 075: input line too long (after substitutions) C:\Users\User\Desktop\GTA RP Script\gamemodes\RolePlay.pwn(2051) : error 037: invalid string (possibly non-terminated string) C:\Users\User\Desktop\GTA RP Script\gamemodes\RolePlay.pwn(2051) : error 017: undefined symbol "UPDATE" C:\Users\User\Desktop\GTA RP Script\gamemodes\RolePlay.pwn(2051) : error 029: invalid expression, assumed zero C:\Users\User\Desktop\GTA RP Script\gamemodes\RolePlay.pwn(2051) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.