How can I avoid "input line too long"
#5

pawn Код:
GetPlayerPos(playerid,PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]);
    GetPlayerFacingAngle(playerid,PlayerInfo[playerid][pPosA]);
    GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
    GetPlayerArmour(playerid,PlayerInfo[playerid][pArmor]);
    new strcatstring[300];
    mysql_format(sqlid,strcatstring, sizeof(strcatstring),"UPDATE `users` SET `px`=%f,`py`=%f,`pz`=%f",
    PlayerInfo[playerid][pPosX],
    PlayerInfo[playerid][pPosY],
    PlayerInfo[playerid][pPosZ],
    PlayerInfo[playerid][pPosA]);
    strcat(query,strcatstring);
    mysql_format(sqlid,strcatstring, sizeof(strcatstring), "`hp`=%f, `armor`=%f WHERE username = '%e'",
    PlayerInfo[playerid][pHealth],
    PlayerInfo[playerid][pArmor],
    GPN(playerid));
    strcat(query,strcatstring);
    mysql_tquery(sqlid,query, "", "");
Not sure if I did it right, it won't work for me.
Reply


Messages In This Thread
How can I avoid "input line too long" - by TonyII - 20.01.2015, 18:37
Re: How can I avoid "input line too long" - by JaydenJason - 20.01.2015, 18:42
Re: How can I avoid "input line too long" - by TonyII - 20.01.2015, 18:44
Re: How can I avoid "input line too long" - by Ironboy - 20.01.2015, 18:53
Re: How can I avoid "input line too long" - by TonyII - 20.01.2015, 20:16
Re: How can I avoid "input line too long" - by Ironboy - 20.01.2015, 20:23

Forum Jump:


Users browsing this thread: 3 Guest(s)