20.03.2010, 00:15
Nice tutorial, Noticed an error:
Should be
pawn Code:
function OnPlayerLogin(playerid) {
// In this function you can make a user forcespawn. This is called after someone logged in..
GivePlayerMoney(playerid, PlayerAccount[playerid][Money]);
SetPlayerHealth(playerid, PlayerAccount[playerid][Health]);
SetPlayerHealth(playerid, PlayerAccount[playerid][Armour]);
AccountData[playerid][Logged] = true;
}
pawn Code:
function OnPlayerLogin(playerid) {
// In this function you can make a user forcespawn. This is called after someone logged in..
GivePlayerMoney(playerid, PlayerAccount[playerid][Money]);
SetPlayerHealth(playerid, PlayerAccount[playerid][Health]);
SetPlayerArmour(playerid, PlayerAccount[playerid][Armour]);
AccountData[playerid][Logged] = true;
}