[SOLVED]All players have the same name with id:0 -
x-unit - 30.07.2010
hello, i have a problem with my server, when someone connects to the server he will have the same name with id 0
but if you click on players list on SA-MP Client it shows the right names...
Any help?Thanks
EDIT: I found the problem, it was a filterscript that was sending random messages. After i removed it names showing fine. Thanks fo your support
Re: All players have the same name with id:0 -
Cameltoe - 30.07.2010
Show us some code.. OnPlayerConnect
Re: All players have the same name with id:0 -
x-unit - 30.07.2010
Quote:
Originally Posted by Cameltoe
Show us some code.. OnPlayerConnect
|
Код:
public OnPlayerConnect(playerid)
{
new string[256], playername[MAX_PLAYER_NAME], file[255];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "%s has joined San Andreas Ultimate Cops And Robbers", playername);
Announce(string);
SetTimerEx("AntiTK", 3000, 1, "d", playerid);
IsPlayerLogged[playerid] = 0;
RecentlyRobbed[playerid] = 0;
SelectBM[playerid] = 0;
AMMUBOX[playerid] = 0;
CSKINZ[playerid] = 0;
CSKINU[playerid] = 0;
CSKIN[playerid] = 0;
CHALLBOX[playerid] = 0;
IcmdCar[playerid][CarcmdI] = -1;
IsSpawned[playerid] =0;
GPSTimer[playerid] = 0;
HaveGPS[playerid] = false;
Muted[playerid] = 0;
AccountInfo[playerid][aLevel] = 0;
//Text Draws
TextDrawShowForPlayer(playerid, BOX);
TextDrawShowForPlayer(playerid, Welcome);
TextDrawShowForPlayer(playerid, text1);
TextDrawShowForPlayer(playerid, text2);
TextDrawShowForPlayer(playerid, text3);
HaveTicket[playerid] = false;
new Registre[250];
format(file, sizeof(file), "%s.runix", playername);
if(fexist(file))
{
GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
format(Registre,sizeof(Registre),"Welcome back %s!\n\nPlease Login to continue!",playername);
ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Login","Kick");
}
else
if(!fexist(file))
{
GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
format(Registre,sizeof(Registre),"Welcome %s!\n\nPlease register to continue!",playername);
ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Register",Registre,"Register","Kick");
}
SetTimerEx("WantedLevelMinus", 100, 1, "i", playerid);
return true;
}
Re: All players have the same name with id:0 -
x-unit - 31.07.2010
found the problem, it was one of my filterscripts...
Re: All players have the same name with id:0 -
Cameltoe - 31.07.2010
Can't really see what's missing .. :S
Re: All players have the same name with id:0 -
FireCat - 31.07.2010
mabe AccountInfo[playerid][aLevel] = 0;
im not sure
Re: All players have the same name with id:0 - Guest3598475934857938411 - 31.07.2010
I don't agree with firecat. What AccountInfo[playerid]=0; Is make the player non admin. Plz get some help for yourself then help others! :P
Re: All players have the same name with id:0 -
SWEMike - 31.07.2010
He said he found the problem...
Re: All players have the same name with id:0 - Guest3598475934857938411 - 01.08.2010
Yep but firecat wasn't saying the right way so better correct him... :P
Re: All players have the same name with id:0 -
Kar - 01.08.2010
Quote:
Originally Posted by expertprogrammer
Yep but firecat wasn't saying the right way so better correct him... :P
|
are u trying to get posts. cus u post pointless "crap"