playerid greater than 15 not working -
MA_proking - 26.05.2013
I was working on a script.
from id 0 to id 15 everything works but after ID 15 i.e. 16,17,18... nothing work. Their stats are not saving.
I used
#undef MAX_PLAYERS
#defind MAX_PLAYERS 50
Still not working any one have any clue?
Re: playerid greater than 15 not working -
park4bmx - 26.05.2013
Ohh here we go again!
We are playing the game called "
Guess the script"
Re: playerid greater than 15 not working -
MA_proking - 26.05.2013
tell me the part you want to see I will show you!!
Re: playerid greater than 15 not working -
park4bmx - 26.05.2013
Uhhh, I don't know??
Maybe the place where ur having problems ?
The so called "script" u was working on ?
Re: playerid greater than 15 not working -
MA_proking - 26.05.2013
Less than ID 15
Код:
[11:34:58] [part] admin has left the server (14:1)
[11:34:58] Stats are saving... Completed. (ID: 14)
when we have id greater than 15
Код:
[11:36:23] [part] Neeraj has left the server (29:1)
pawn Код:
stock SavePlayer(playerid)
{
if(Logged[playerid] == 1)
{
if(Spawned[playerid] == 1)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data"); //kayэt5
INI_WriteInt(File,"Password",PlayerInfo[playerid][pPass]);
INI_WriteInt(File,"Cash",PlayerInfo[playerid][pCash]);
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Donate",PlayerInfo[playerid][pDonate]);
INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
INI_WriteInt(File,"Exp",PlayerInfo[playerid][pExp]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
INI_WriteInt(File,"Lang",PlayerInfo[playerid][pLang]);
INI_WriteInt(File,"Bank",PlayerInfo[playerid][pBank]);
INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
INI_WriteInt(File,"Mute",PlayerInfo[playerid][pMute]);
INI_WriteInt(File,"UP",PlayerInfo[playerid][pUP]);
INI_WriteInt(File,"GangBoss",PlayerInfo[playerid][pGangBoss]);
INI_WriteInt(File,"FightStyle",PlayerInfo[playerid][pFightStyle]);
INI_WriteInt(File,"Jail",PlayerInfo[playerid][pJail]);
INI_WriteInt(File,"DuelWin",PlayerInfo[playerid][pDuelWin]);
INI_WriteInt(File,"DuelLose",PlayerInfo[playerid][pDuelLose]);
INI_WriteInt(File,"AADdeath",PlayerInfo[playerid][pAADdeath]);
INI_WriteInt(File,"AADkill",PlayerInfo[playerid][pAADkill]);
INI_Close(File);
printf("Stats are saving... Completed. (ID: %d)",playerid);
}
}
return 1;
}
Re: playerid greater than 15 not working -
park4bmx - 26.05.2013
and how is the stock lunched/called like ?
Re: playerid greater than 15 not working -
MA_proking - 26.05.2013
Under
pawn Код:
public OnPlayerConnect(playerid)
public OnPlayerDisConnect(playerid)
public OnPlayerDeath(playerid, killerid, reason)
Re: playerid greater than 15 not working -
park4bmx - 26.05.2013
ok, look they are under this callbacks but how am I support to know that they are not being blocked by precise called ?
If u don't want to show ur code then don't ask 4 help, is not something u don't see every day!
Re: playerid greater than 15 not working -
MA_proking - 26.05.2013
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
HighPingWarn[playerid] = 0;
new Code[50], Line[256], str[128];
gpci(playerid, Code, sizeof Code);
format(Line, sizeof(Line), Location, Code);
format(str,sizeof(str),"{808080}* IP Adress: %s",IPis[playerid]);
SendIPMessageToAdmins(-1,str);
format(str,sizeof(str),"{808080}* Serial Code: %s",Code);
SendIPMessageToAdmins(-1,str);
SavePlayer(playerid);
ResetPlayer(playerid);
PlayerHouse[playerid] = -1;
HouseInEditProgress[GetHouseID(playerid)] = false;
PlayerCheckHouse[playerid] = -255;
printf("The disconnection succesfully done.");
return 1;
}
Here is the basic problem
Re: playerid greater than 15 not working -
Black Wolf - 26.05.2013
Sorry forgot to update the post link.