Quote:
Originally Posted by Puzi
Quote:
Originally Posted by [SAP
Francis ]
You have a brace which doesn't belong here, that's all I'm saying.
pawn Код:
new LogOff[MAX_PLAYERS];
public OnPlayerDisconnect(playerid, reason) { // OnPlayerUpdate(playerid); // This shouldn't be here, because SA-MP already has a callback like so. Rename the function to something else? if(IsPlayerConnected(playerid)) { if(LogOff[playerid]) { // Script here I'd say. } } return 1; }
|
Yea, but my friend said so it should, cause it updates player's score and etc. when he comes back :S
And what script? That's what I was asking for...  I am dumb
|
You don't need to.
You're calling the callback by script, it has nothing to do with client&server's update.
eg:You call OnPlayerEnterVehicle by script, does the player enter the vehicle?