03.09.2016, 00:26
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;
}
What's the problem?