03.05.2014, 15:45
Hola! Tengo esta funciуn en mi servidor, y las dos ъltimas variables "pTeam" y "pModel" no se me guardan, en la tabla de la base de datos estбn siempre a 0, y no sй por quй. Si necesitбis algo mбs de cуdigo avisad y lo publico, muchas gracias!
Код:
forward SaveAccount(playerid);public SaveAccount(playerid) { new query[500];GetPlayerPos(playerid, PlayerInfo[playerid][pPosx], PlayerInfo[playerid][pPosy], PlayerInfo[playerid][pPosz]); new pName[24]; GetPlayerName(playerid, pName, 24); GetPlayerHealth(playerid, PlayerInfo[playerid][pVida]), GetPlayerArmour(playerid, PlayerInfo[playerid][pChaleco]); format(query, 360, "UPDATE `usuarios` SET `Vida`='%f', `Chaleco`='%f', `Admin`='%d', `Level`='%d', `Posx`='%f', `Posy`='%f', `Posz`='%f', `Password`='%s', `Tutorial`='%d', `Registrado`='%d', `Team`='%d', `Model`='%d' WHERE `Nombre`='%s'", PlayerInfo[playerid][pVida], PlayerInfo[playerid][pChaleco], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pPosx], PlayerInfo[playerid][pPosy], PlayerInfo[playerid][pPosz], PlayerInfo[playerid][pPassword], PlayerInfo[playerid][pTut], PlayerInfo[playerid][pReg], PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], pName); mysql_function_query(Conecction, query, true, "OnQueryFinish", "ii", 0, playerid); return 1; }