01.10.2014, 23:04
(
Последний раз редактировалось TakeiT; 04.10.2014 в 18:54.
)
When a player registers, it inserts their data into the database, as it should. However, when they log out, the database does not update. The weird thing is, I know its not my queries, because if I log back in, everything DOES save from then on. Just the first time an account is created. I'm assuming it has to do with my register function.
pawn Код:
public OnPlayerRegister(playerid)
{
pInfo[playerid][Level] = 1;
pInfo[playerid][Admin] = 0;
pInfo[playerid][Skin] = 1;
pInfo[playerid][Cash] = 5000; //These vars do not save the first time.
GivePlayerMoney(playerid, 5000);
SpawnPlayer(playerid);
SetPlayerSkin(playerid, 1);
return 1;
}