07.08.2018, 22:20
Well no, AssignPlayerData is in the login dialog:
pawn Код:
if (strcmp(hashed_pass, Player[playerid][Password]) == 0)
{
cache_set_active(Player[playerid][Cache_ID]);
AssignPlayerData(playerid);
cache_delete(Player[playerid][Cache_ID]);
Player[playerid][Cache_ID] = MYSQL_INVALID_CACHE;
KillTimer(Player[playerid][LoginTimer]);
Player[playerid][LoginTimer] = 0;
Player[playerid][IsLoggedIn] = true;
new ggString[128];
format(ggString, sizeof(ggString), ""WHITE"* Welcome back "SAMP_BLUE"%s (%d) "WHITE"- "SAMP_BLUE"Account ID: %d "WHITE"- Your stats have been loaded.", ReturnPlayerName(playerid), playerid, Player[playerid][ID]);
SendClientMessage(playerid, -1, ggString);
SetSpawnInfo(playerid, Player[playerid][PlayerTeam], Player[playerid][Skin], 0, 0, 0, 0, 0, 0, 280, 0, 0, 0);
SpawnPlayer(playerid);
}