[BUG?] Function not execute - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [BUG?] Function not execute (
/showthread.php?tid=387863)
[BUG?] Function not execute -
Papacool - 26.10.2012
Hello, here after decrementation, the rest of the script does not work:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(IsPlayerNPC(playerid)) return 1;
OnlinePlayers--; // executed
print("-1 ONLINE"); // executed
CountJob[PlayerInfo[playerid][pJob]]--; // executed
print("-1 JOB"); // executed
CountGroupe[PlayerInfo[playerid][pIDGroupe]]--; // NO executed
print("-1 GROUPE"); // NO executed
if(UserDechi == playerid)
{
UserDechi = 65555; // NO executed
}
print("UserDechi changed"); // NO executed
if(PlayerCanSpawn[playerid])
{
SavePlayerInfo(playerid); // NO executed
print("SAVE PLAYER"); // NO executed
SaveGroupe(PlayerInfo[playerid][pIDGroupe]); // NO executed
print("SAVE GROUPE + PLAYER"); // NO executed
}
return 1;
}
Why did the script is not executed ??
Many thanks, have a nice day