07.11.2012, 11:30
(
Последний раз редактировалось tuuler; 07.02.2014 в 11:42.
)
----------------------
public OnPlayerDisconnect(playerid, reason) { new string[180], pname[MAX_PLAYER_NAME]; new playerfile[100]; GetPlayerName(playerid, pname, sizeof(pname)); if(logged[playerid] == 1) { format(playerfile, sizeof(playerfile), "Tropical/Users/%s.ini",pname); dini_IntSet(playerfile, "Level", level[playerid]); dini_IntSet(playerfile, "Cash", GetPlayerMoney(playerid)); dini_IntSet(playerfile, "Score", GetPlayerScore(playerid)); } level[playerid] = 0; logged[playerid] = 0; /*#if defined leavemes new string[180], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), " ",); SendClientMessageToAll(grey, string); */ switch(reason) { case 0: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Lost Connection", pname); case 1: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Leaving", pname); case 2: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Kicked/Banned", pname); } SendClientMessageToAll(0xAAAAAAAA, string); return 1; }
new string[180], pname[MAX_PLAYER_NAME];
new playerfile[100];
GetPlayerName(playerid, pname, sizeof(pname));
if(logged[playerid] == 1)
{
format(playerfile, sizeof(playerfile), "Tropical/Users/%s.ini",pname);
dini_IntSet(playerfile, "Level", level[playerid]);
dini_IntSet(playerfile, "Cash", GetPlayerMoney(playerid));
dini_IntSet(playerfile, "Score", GetPlayerScore(playerid));
}
I think i found the problem....
Код:
public OnPlayerDisconnect(playerid, reason) { new string[180], pname[MAX_PLAYER_NAME]; new playerfile[100]; GetPlayerName(playerid, pname, sizeof(pname)); if(logged[playerid] == 1) { format(playerfile, sizeof(playerfile), "Tropical/Users/%s.ini",pname); dini_IntSet(playerfile, "Level", level[playerid]); dini_IntSet(playerfile, "Cash", GetPlayerMoney(playerid)); dini_IntSet(playerfile, "Score", GetPlayerScore(playerid)); } level[playerid] = 0; logged[playerid] = 0; /*#if defined leavemes new string[180], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), " ",); SendClientMessageToAll(grey, string); */ switch(reason) { case 0: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Lost Connection", pname); case 1: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Leaving", pname); case 2: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Kicked/Banned", pname); } SendClientMessageToAll(0xAAAAAAAA, string); return 1; } |
I think i found the problem....
Код:
public OnPlayerDisconnect(playerid, reason) { new string[180], pname[MAX_PLAYER_NAME]; new playerfile[100]; GetPlayerName(playerid, pname, sizeof(pname)); if(logged[playerid] == 1) { format(playerfile, sizeof(playerfile), "Tropical/Users/%s.ini",pname); dini_IntSet(playerfile, "Level", level[playerid]); dini_IntSet(playerfile, "Cash", GetPlayerMoney(playerid)); dini_IntSet(playerfile, "Score", GetPlayerScore(playerid)); } level[playerid] = 0; logged[playerid] = 0; /*#if defined leavemes new string[180], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), " ",); SendClientMessageToAll(grey, string); */ switch(reason) { case 0: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Lost Connection", pname); case 1: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Leaving", pname); case 2: format(string, sizeof(string), "{999900}%s {FFFFFF}Has Left The Server | {999900}Kicked/Banned", pname); } SendClientMessageToAll(0xAAAAAAAA, string); return 1; } |