[Ayuda] Warnings Cуdigo MySQL R7
#1

Hola a todos, quisiera saber si me podrнan ayudar a reparar estos warnings:

Код:
D:\SA-MP\New Gamemode MySQL\gamemodes\NSRP.pwn(265) : warning 203: symbol is never used: "pass"
D:\SA-MP\New Gamemode MySQL\gamemodes\NSRP.pwn(265) : warning 203: symbol is never used: "salt"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           2264 bytes
Code size:            21540 bytes
Data size:           359816 bytes
Stack/heap size:      16384 bytes; estimated max. usage=264 cells (1056 bytes)
Total requirements:  400004 bytes

2 Warnings.
el cуdigo es:

Lнnea 265:
Код:
stock CreateAccount(playerid, salt[], pass[129])
Stock Completo:
pawn Код:
stock CreateAccount(playerid, salt[], pass[129])
{
    format(Query, sizeof(Query), "INSERT INTO `usuarios` (Nombre, Salt, Contraseсa) VALUES (\'%s\', \'%s\', \'%s\')",
    returnName(playerid),
    PlayerInfo[playerid][pSalt],
    PlayerInfo[playerid][pPass]
    );

    mysql_function_query(ConexionMySQL, Query, false, "OnAccountCreate", "d", playerid);
}
Aquн se ejecuta la funciуn:

pawn Код:
case DIALOG_REGISTRO:
        {
            if(!response || !strlen(inputtext))
            {
                Kick(playerid);
            }

            if(strlen(inputtext) >= MAX_PASS_LENGTH)
            {
                return SendClientMessage(playerid, -1, "SERVER: Password must not be more than 40 characters"),
                format(szDialog, sizeof(szDialog), "Bienvenido(a) %s!\nIngresa una contraseсa para registrarte en el servidor.\n\nContraseсa:", ReturnNameEx(playerid)),
                ShowPlayerDialog(playerid,DIALOG_REGISTRO,DIALOG_STYLE_INPUT ,"NS:RP - Registro",szDialog,"Registrar","Salir");
            }

            new
                Salt[30],
                hash[129];

            randomString(Salt, 30);
            format(hash, sizeof(hash), "%s%s", Salt, inputtext);

            WP_Hash(hash, sizeof(hash), hash);
            CreateAccount(playerid, Salt, hash);

            format(hash, sizeof(hash), "SERVER: Welcome %s", ReturnNameEx(playerid));
            SendClientMessage(playerid, -1, hash);

            PlayerInfo[playerid][pSkin] = NEWB_SKIN;

            ToggleMainMenu(playerid, 0);
            SetCameraBehindPlayer(playerid);
            SetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
            SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPosA]);
            SetPlayerSkin(playerid, NEWB_SKIN);
        }
    }
Espero que me puedan ayudar, de antemano gracias
Reply


Messages In This Thread
[Ayuda] Warnings Cуdigo MySQL R7 - by Satanathrone - 22.09.2013, 23:03
Respuesta: [Ayuda] Warnings Cуdigo MySQL R7 - by Swedky - 22.09.2013, 23:23
Re: Respuesta: [Ayuda] Warnings Cуdigo MySQL R7 - by Satanathrone - 22.09.2013, 23:40
Respuesta: [Ayuda] Warnings Cуdigo MySQL R7 - by Vladeksh - 23.09.2013, 00:52
Re: Respuesta: [Ayuda] Warnings Cуdigo MySQL R7 - by Satanathrone - 23.09.2013, 02:05
Respuesta: [Ayuda] Warnings Cуdigo MySQL R7 - by oOFotherOo - 23.09.2013, 04:14

Forum Jump:


Users browsing this thread: 1 Guest(s)