Fatal Bug [PAYPAL REWARD]
#1

Hi,

I'm using this script: https://sampforum.blast.hk/showthread.php?tid=223963

I configured IRC and got all of the missing files so that I could compile the .pwn into the .amx.


I have noticed that when you connect, you need to make an account obviously. I put my password in the dialog and then registered. When I tried to connect again it said my password was wrong when it wasn't, got someone else to try and it happened to them too. I also noticed there is no 'Accounts' in scriptfiles.

Paypal reward.
Reply
#2

Check the OnPlayerConnect callback again and look for the bug. Let me see if i can do it.

EDIT: Make a new folder in the scriptfiles called "Accounts" and then connect to the server
Reply
#3

OnPlayerConnect:

Код:
public OnPlayerConnect(playerid)
{
	if(IsPlayerNPC(playerid)) return 1;

	new string[128];
    new pname[24];
    
    //Variables
    zoneupdates[playerid] =1;

	//Connect Messages
	format(string,sizeof(string),"Welcome to San Fierro Cops-Robbers-RPG v%s!",sversion);
	SendClientMessage(playerid,COLOR_WHITE,string);
	SendClientMessage(playerid,COLOR_ROYALBLUE,"We have many fun things for you to do here in SFCRRPG");
	SendClientMessage(playerid,COLOR_LIME,"Please remember to abide by our server /rules at all times");
	SendClientMessage(playerid,COLOR_GREEN,"If you have any problems feel free to /report them to the Administrators online");
	
	//Player Join message
	GetPlayerName(playerid,pname,sizeof(pname));
	format(string,sizeof(string),"%s(%d) Has joined San Fierro Cops-Robbers-RPG v%s!",pname,playerid,sversion);
	SendClientMessageToAll(COLOR_VIOLETBLUE,string);
	format(string,sizeof(string),"6%s(%d) Has joined San Fierro Cops-Robbers-RPG v%s!",pname,playerid,sversion);
	IRC_Say(gGroupID,IRC_CHANNEL,string);
	SetPlayerColor(playerid,COLOR_DEADCONNECT);

	//Do things to the player
	JailTimer[playerid] = TextDrawCreate(505.000000, 411.000000, "Jailtime: 180");
	TextDrawBackgroundColor(JailTimer[playerid], -1);
	TextDrawFont(JailTimer[playerid], 3);
	TextDrawLetterSize(JailTimer[playerid], 0.529999, 1.299999);
	TextDrawColor(JailTimer[playerid], 65535);
	TextDrawSetOutline(JailTimer[playerid], 1);
	TextDrawSetProportional(JailTimer[playerid], 1);
	TextDrawUseBox(JailTimer[playerid], 1);
	TextDrawBoxColor(JailTimer[playerid], 255);
	TextDrawTextSize(JailTimer[playerid], 633.000000, 0.000000);
	
	MessageTD[playerid] = TextDrawCreate(241.000000, 410.000000, "TICKET RECIEVED");
	TextDrawBackgroundColor(MessageTD[playerid], 255);
	TextDrawFont(MessageTD[playerid], 1);
	TextDrawLetterSize(MessageTD[playerid], 0.549999, 1.500000);
	TextDrawColor(MessageTD[playerid], -1);
	TextDrawSetOutline(MessageTD[playerid], 0);
	TextDrawSetProportional(MessageTD[playerid], 1);
	TextDrawSetShadow(MessageTD[playerid], 1);
	TextDrawUseBox(MessageTD[playerid], 1);
	TextDrawBoxColor(MessageTD[playerid], 255);
	TextDrawTextSize(MessageTD[playerid], 384.000000, 0.000000);
	
	LocationTD[playerid] = TextDrawCreate(43.000000, 327.000000, "Downtown");
	TextDrawBackgroundColor(LocationTD[playerid], 255);
	TextDrawFont(LocationTD[playerid], 1);
	TextDrawLetterSize(LocationTD[playerid], 0.500000, 1.000000);
	TextDrawColor(LocationTD[playerid], -1);
	TextDrawSetOutline(LocationTD[playerid], 0);
	TextDrawSetProportional(LocationTD[playerid], 1);
	TextDrawSetShadow(LocationTD[playerid], 1);
	
	format(string,sizeof(string),"Version: %s",sversion);
	TextDrawSetString(VersionTD,string);
	TextDrawShowForPlayer(playerid,VersionTD);
	TextDrawShowForPlayer(playerid,WebsiteTD);
	TogglePlayerClock(playerid,1);
	
	SetPlayerMapIcon(playerid,1,-2626.1843,211.5102,4.6097,6,0); //Ammunation
	SetPlayerMapIcon(playerid,2,-2099.6882,899.1699,76.7109,24,0); //CaltonHeightsDH
	SetPlayerMapIcon(playerid,3,-2779.9194,0.3026,10.0625,24,0); //OceanFlatsDH
	SetPlayerMapIcon(playerid,4,-2576.4824,818.9226,49.9844,24,0); //ParadisoDH
	SetPlayerMapIcon(playerid,5,-2433.7866,1281.6011,23.7422,24,0); //JuniperHollowDH
	SetPlayerMapIcon(playerid,6,-1547.4066,123.6555,3.5547,9,0); //ShipYard
	SetPlayerMapIcon(playerid,7,-1657.7573,1210.2754,7.2500,55,0); //Otto'sCars
	SetPlayerMapIcon(playerid,8,-1923.3926,303.6380,41.0469,8,0); //BombShop
	SetPlayerMapIcon(playerid,9,-2331.8582,-164.2207,35.5547,10,0); //BurgerShotGarcia
	SetPlayerMapIcon(playerid,10,-2671.5444,260.9214,4.6328,10,0); //BurgerShotOcean
	SetPlayerMapIcon(playerid,11,370.7744,-6.5378,1001.8589,14,0); //CluckinBellOcean
	SetPlayerMapIcon(playerid,12,-2553.8923,193.2280,6.1560,49,0); //GayDarStation
	SetPlayerMapIcon(playerid,13,-2241.8118,131.9901,35.3203,47,0); //Zero's
	SetPlayerMapIcon(playerid,14,-2242.2817,-85.7698,35.3203,49,0); //Misty's
	SetPlayerMapIcon(playerid,15,-1951.9911,300.2070,35.4688,55,0); //WangCars
	SetPlayerMapIcon(playerid,16,-2658.3201,639.5060,14.4531,22,0); //Hospital
	SetPlayerMapIcon(playerid,17,-2568.8982,243.9241,10.2489,7,0); //Barbers
	SetPlayerMapIcon(playerid,18,-2270.1182,-152.8132,35.3203,54,0); //GYM
	SetPlayerMapIcon(playerid,19,-2029.2903,-102.0118,35.1641,36,0); //DrivingSchool
	SetPlayerMapIcon(playerid,20,-1979.9883,138.0498,27.6875,42,0); //TrainStation
	SetPlayerMapIcon(playerid,21,-1911.2001,829.2663,35.1719,10,0); //BurgerShotDowntown
	SetPlayerMapIcon(playerid,22,-1886.2000,862.4730,35.1719,45,0); //DowntownZip
	SetPlayerMapIcon(playerid,23,-1806.8252,947.8553,24.8906,29,0); //FinancialPizza
	SetPlayerMapIcon(playerid,24,-1748.4784,963.3699,24.8828,30,0); //FBI
	SetPlayerMapIcon(playerid,25,-1692.5487,949.6002,24.8906,45,0); //DowntownVictim
	SetPlayerMapIcon(playerid,26,-1496.8027,919.8218,7.1875,52,0); //Bank
	SetPlayerMapIcon(playerid,27,-1609.2813,712.9857,13.7334,30,0); //SFPD
	SetPlayerMapIcon(playerid,28,-1719.8079,1356.6371,7.1875,29,0); //EsplanadePizza
	SetPlayerMapIcon(playerid,29,-2622.5164,1412.6412,7.0938,49,0); //Jizzy's
	SetPlayerMapIcon(playerid,30,-2356.0327,1004.7512,50.8984,10,0); //BurgerShotJuniperHollow
	SetPlayerMapIcon(playerid,31,-2374.1877,908.1357,45.4371,45,0); //JuniperHillBinco
	SetPlayerMapIcon(playerid,32,-2446.3350,752.2393,35.1719,62,0); //SupaSave
	SetPlayerMapIcon(playerid,33,-1814.2487,617.8710,35.1719,14,0); //DowntownCluckin
	
	//Check to see if they are registered or logged in
	if(udb_Exists(PlayerName(playerid)))
	{
		SendClientMessage(playerid,COLOR_ERROR,"This player name has already been registered. Please login before you spawn.");
		ShowLoginScreen(playerid);
	}
	else
	if(!udb_Exists(PlayerName(playerid)))
	{
		SendClientMessage(playerid,COLOR_ERROR,"This player name has not been registered. You must register before playing on SFCRRPG.");
		ShowRegisterScreen(playerid);
	}

	for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false; /////////xobj
	
	return 1;
}
Also, making a new folder called Accounts in scriptfiles didn't work.
Reply
#4

Maybe it's because when you register, the script fails trying to create the file. And when you rejoin, the file doesn't exist and you can't login.
Check your register code.
By the way, I'm just helping you, I don't expect nothing in return.
Reply
#5

Quote:
Originally Posted by [Vector]
Посмотреть сообщение
Maybe it's because when you register, the script fails trying to create the file. And when you rejoin, the file doesn't exist and you can't login.
Check your register code.
By the way, I'm just helping you, I don't expect nothing in return.
Yeah that can be it. Check that brother.

@Reward- There is nothing bad to do something for a reward. Im not doing for it too. But if he wants to give a reward there is nothing bad about it. He just wants to fix this bug and create interest of the scripters as well to fix it.
Reply
#6

When Stevo127 released that gamemode, he made a typo with scriptfiles folder. He named it to "scriptfiiles", so rename it to "scriptfiles" and fix that typo if you havn't.

This has already been posted numerous times before : http://forum.sa-mp.com/showpost.php?...&postcount=656
Reply
#7

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
When Stevo127 released that gamemode, he made a typo with scriptfiles folder. He named it to "scriiptfiles", so rename it to "scriptfiles" and fix that typo if you havn't.

This has already been posted numerous times before : http://forum.sa-mp.com/showpost.php?...&postcount=656
If that works. This is the guy who deserve your reward.
Reply
#8

Tested and worked for me
Good luck fixing it for you,
Only change ''scriiptfiles'' to ''scriptfiles'' and restart ur server.
Reply
#9

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
When Stevo127 released that gamemode, he made a typo with scriptfiles folder. He named it to "scriptfiiles", so rename it to "scriptfiles" and fix that typo if you havn't.

This has already been posted numerous times before : http://forum.sa-mp.com/showpost.php?...&postcount=656
My hero.
Reply
#10

He deserved the reward. You should put a screenshot here also. Will be good for others to help people for rewards via paypal.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)