mysql can't fetch data or ?
#1

pawn Код:
forward USYS_LoadPlayer(playerid);
public USYS_LoadPlayer(playerid) {
    new temp[24+1], passw[64+1];
    cache_get_row(0, 1, temp); PlayerInfo[playerid][pName] = temp;
    cache_get_row(0, 2, temp); GivePlayerMoney(playerid, strval(temp));
    cache_get_row(0, 3, passw); PlayerInfo[playerid][pPass] = passw;
    cache_get_row(0, 4, passw); PlayerInfo[playerid][pPassSalt] = passw;
    cache_get_row(0, 5, temp); PlayerInfo[playerid][pAge] = strval(temp);
    cache_get_row(0, 6, temp); PlayerInfo[playerid][pGender] = strval(temp);
    cache_get_row(0, 7, temp); PlayerInfo[playerid][pSkin] = strval(temp);

    SetPlayerCameraPos(playerid, 783.5763, -316.3381, 114.9783);
    SetPlayerCameraLookAt(playerid, 783.2093, -317.2744, 114.5583);
   
    printf("Player [%s] loaded and sent to login screen!", GetName(playerid));

    format(gstring, sizeof(gstring), DialogText[4], GetName(playerid));
    ShowPlayerDialog(playerid, USYS_LOGIN, DIALOG_STYLE_PASSWORD, " Reloaded Roleplay - Login ", gstring, "Login", "Cancel");
    return 1;
}
it loads everything except pPass and pPassSalt, pPass and pPassSalt are 64+1 variables.

What's the problem?
Reply


Messages In This Thread
mysql can't fetch data or ? - by venomlivno8 - 03.09.2016, 00:26
Respuesta: mysql can't fetch data or ? - by HidroDF - 03.09.2016, 00:31
Re: mysql can't fetch data or ? - by venomlivno8 - 03.09.2016, 00:38

Forum Jump:


Users browsing this thread: 1 Guest(s)