25.07.2011, 17:12
Quote:
How do you know it's not calling it? There's no print statements anywhere!
|
pawn Код:
OnPlayerLogin(playerid, password[])
{
new
uFile[50],
player_Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, player_Name, sizeof(player_Name));
format(uFile, 50, USER_DIRECTORY, player_Name);
INI_ParseFile(uFile, "LoadUserData", .bExtra = true, .extra = playerid);
if(strcmp(SInfo[playerid][Password], password, true))
{
new
string2[128];
SetPVarInt(playerid, "Logged", 1);
SendClientMessage(playerid, -1, "{FFFFFF}You have logged into Sky's Local Fun Zone!");
[B]format(string2, sizeof(string2), "Password: %s | Auth. Lvl: %d | V.I.P Lvl: %d", SInfo[playerid][Password], SInfo[playerid][AuthLvl], SInfo[playerid][VIP]);
printf(string2);
format(string2, sizeof(string2), "Cash: $%d | Skin: %d | Score: %d | Kills: %d | Deaths: %d", SInfo[playerid][Cash], SInfo[playerid][CustomSkin], SInfo[playerid][Score], SInfo[playerid][Kills], SInfo[playerid][Deaths]);
printf(string2);
format(string2, sizeof(string2), "Custom Car ID: %d | Custom Car C1: %d | Custom Car C2: %d | Custom Plate: %s", SInfo[playerid][CustomCarID], SInfo[playerid][CustomCarC1], SInfo[playerid][CustomCarC2], SInfo[playerid][CustomCarPlate]);
printf(string2);[/B]
}
return 1;
}