MySQL Issues
#1

Hey there.
I've been having issues trying to convert my blank GM to MySQL.
First off.
pawn Код:
stock SaveAccount(playerid)
{
    if(LoggingIn[playerid] == 1) return 0;
    new query[300], Float:pos[3], Float:Angle;
    GetPlayerPos(playerid, pos[0],pos[1],pos[2]);
    GetPlayerFacingAngle(playerid, Angle);
    format(query, sizeof(query), "UPDATE `accounts` SET Admin='%d', Sex='%d', Skin='%d', Age='%d', PosX='%.2f', PosY='%.2f' ,PosZ='%.2f', FaceA='%.2f', Interior='%d',VirtualWorld='%d', CellNum='%d', Job='%d', Accent='%d', Faction='%d', Hospital='%d', Insurance='%d', WHERE `Name`='%s'",PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pSex], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pAge], pos[0],pos[1],pos[2], Angle, GetPlayerInterior(playerid),GetPlayerVirtualWorld(playerid),PlayerInfo[playerid][Name]);
    mysql_function_query(handle, query, false, "SendQuery", "");
    return 1;
}
This stock gives me
pawn Код:
B:\Development\SAMP\Blank Gamemode\gamemodes\crp.pwn(1271) : error 075: input line too long (after substitutions)
B:\Development\SAMP\Blank Gamemode\gamemodes\crp.pwn(1272) : error 017: undefined symbol "N"
B:\Development\SAMP\Blank Gamemode\gamemodes\crp.pwn(1273) : warning 217: loose indentation
B:\Development\SAMP\Blank Gamemode\gamemodes\crp.pwn(1273) : error 017: undefined symbol "ame"
B:\Development\SAMP\Blank Gamemode\gamemodes\crp.pwn(1273) : error 029: invalid expression, assumed zero
B:\Development\SAMP\Blank Gamemode\gamemodes\crp.pwn(1273) : error 029: invalid expression, assumed zero
B:\Development\SAMP\Blank Gamemode\gamemodes\crp.pwn(1273) : fatal error 107: too many error messages on one line
I'm not sure whats going on here. Any help is appreciated.
Reply


Messages In This Thread
MySQL Issues - by Jacksta21 - 22.05.2014, 15:27
Re: MySQL Issues - by Konstantinos - 22.05.2014, 15:29
Re: MySQL Issues - by RajatPawar - 22.05.2014, 15:32
Re: MySQL Issues - by Jacksta21 - 22.05.2014, 15:35
Re: MySQL Issues - by RajatPawar - 22.05.2014, 15:41
Re: MySQL Issues - by Jacksta21 - 22.05.2014, 15:44
Re: MySQL Issues - by RajatPawar - 22.05.2014, 15:49
Re: MySQL Issues - by Jacksta21 - 22.05.2014, 18:23
Re: MySQL Issues - by Vince - 22.05.2014, 20:02
Re: MySQL Issues - by AiRaLoKa - 23.05.2014, 01:27

Forum Jump:


Users browsing this thread: 1 Guest(s)