Shitty Problem
#1

will anyone can help me ??

no one helping is all scripters are died ?

One player Connect i got this message "Invalid memory access"
&
OnPlayerDeath I got this message "[20:54:23] [debug] #0 00075f50 in public OnPlayerDeath () from Sampever.amx
[20:54:23] [debug] AMX backtrace:
[20:54:23] [debug] Accessing element at index 65535 past array upper bound 499



PHP код:
[20:54:40] [parturiel has left the server (1:0)
[
20:54:23] [deathuriel died 54
[20:54:23] [debug#0 00075f50 in public OnPlayerDeath () from Sampever.amx
[20:54:23] [debugAMX backtrace:
[
20:54:23] [debug]  Accessing element at index 65535 past array upper bound 499
[20:54:23] [debugRun time error 4"Array index out of bounds"
[20:53:47] [chat] [vitor]: METIRA EU DENHO O APLICADIVO NO GTA 
[20:53:24] [death******* died 54
[20:53:24] [debug#0 00075f50 in public OnPlayerDeath () from Sampever.amx
[20:53:24] [debugAMX backtrace:
[
20:53:24] [debug]  Accessing element at index 65535 past array upper bound 499
[20:53:24] [debugRun time error 4"Array index out of bounds"
[20:53:17] [chat] [vitor]: EU NADA KKKK
[20:53:01] [debug#0 00006d20 in public OnPlayerConnect () from spsa.amx
[20:53:01] [debugAMX backtrace:
[
20:53:01] [debugRun time error 5"Invalid memory access"
[20:53:01] [joinuriel has joined the server (1:186.224.167.108)
[
20:53:00Incoming connection186.224.167.108:43909
[20:52:55] [parturiel has left the server (1:0)
[
20:52:47] [joinemad has joined the server (3:5.144.56.44)
[
20:52:47Incoming connection5.144.56.44:63954
[20:52:18] [chat] [*******]: 7499798
[20:49:30] [debug#0 00006d20 in public OnPlayerConnect () from spsa.amx
[20:49:30] [debugAMX backtrace:
[
20:49:30] [debugRun time error 5"Invalid memory access"
[20:49:30] [joinuriel has joined the server (1:186.224.167.108)
[
20:49:29Incoming connection186.224.167.108:43861
[20:49:10] [parturiel has left the server (1:0)
[
20:49:05] [chat] [*******]: 6886016
[20:48:33] [chat] [vitor]: PARA MIM E VERMELHO
[20:47:52] [death******* died 255
[20:47:52] [debug#0 00075f50 in public OnPlayerDeath () from Sampever.amx
[20:47:52] [debugAMX backtrace:
[
20:47:52] [debug]  Accessing element at index 65535 past array upper bound 499
[20:47:52] [debugRun time error 4"Array index out of bounds"
[20:47:42] [chat] [vitor]: URIEL ESTOU AKI 
[20:47:32] [debug#0 00006d20 in public OnPlayerConnect () from spsa.amx
[20:47:32] [debugAMX backtrace:
[
20:47:32] [debugRun time error 5"Invalid memory access"
[20:47:32] [joinuriel has joined the server (1:186.224.167.108)
[
20:47:31Incoming connection186.224.167.108:43416
[20:46:57] [chat] [*******]: 3656248
[20:46:55] [part] [GTA]Polos has left the server (1:1)
[
20:45:56] [chat] [vitor]: URIEL ESTOU AKI
[20:45:32] [chat] [vitor]: esou aki uriel
[20:42:47] [joinvitor has joined the server (2:186.213.223.83)
[
20:42:46Incoming connection186.213.223.83:12151
[20:40:55] [parturiel has left the server (2:0)
[
20:40:17] [chat] [*******]: 4166390
[20:40:00] [chat] [uriel]: w
[20:39:43] [debug#0 00006d20 in public OnPlayerConnect () from spsa.amx
[20:39:43] [debugAMX backtrace:
[
20:39:43] [debugRun time error 5"Invalid memory access"
[20:39:43] [joinuriel has joined the server (2:186.224.167.108)
[
20:39:42Incoming connection186.224.167.108:43270
[20:39:21] [parturiel has left the server (2:0)
[
20:39:07] [death******* died 255
[20:39:07] [debug#0 00075f50 in public OnPlayerDeath () from Sampever.amx
[20:39:07] [debugAMX backtrace:
[
20:39:07] [debug]  Accessing element at index 65535 past array upper bound 499
[20:39:07] [debugRun time error 4"Array index out of bounds"
[20:39:04] [chat] [uriel]: eeeeeeeeeeeeeeeeeeeeee
[20:38:57] [chat] [[GTA]Polos]: hi
[20:38:10LOGINFailed Login: [GTA]PolosWrong password (123345) (1)
[
20:38:02] [join] [GTA]Polos has joined the server (1:2.26.207.206)
[
20:38:02Incoming connection2.26.207.206:62949
[20:37:47] [chat] [uriel]: vc й?
[
20:36:58] [chat] [*******]: 7470911
[20:35:31] [chat] [uriel]: ?
[
20:35:18] [chat] [uriel]: you tube
[20:35:14] [chat] [uriel]: vc й br
[20:33:24] [death******* died 54
[20:33:24] [debug#0 00075f50 in public OnPlayerDeath () from Sampever.amx
[20:33:24] [debugAMX backtrace:
[
20:33:24] [debug]  Accessing element at index 65535 past array upper bound 499
[20:33:24] [debugRun time error 4"Array index out of bounds"
[20:33:10] [partRost_Harabar has left the server (1:1)
[
20:32:44] [partkolot has left the server (3:1)
[
20:32:37] [joinRost_Harabar has joined the server (1:5.56.102.83)
[
20:32:36Incoming connection5.56.102.83:20627
[20:32:11] [partRusherZz has left the server (1:1)
[
20:32:08] [deathRusherZz died 54
[20:32:08] [debug#0 00075f50 in public OnPlayerDeath () from Sampever.amx
[20:32:08] [debugAMX backtrace:
[
20:32:08] [debug]  Accessing element at index 65535 past array upper bound 499
[20:32:08] [debugRun time error 4"Array index out of bounds"
[20:31:48] [joinkolot has joined the server (3:95.72.164.240)
[
20:31:47Incoming connection95.72.164.240:3079
[20:31:42] [chat] [uriel]: gfd
[20:31:35] [death******* died 54
[20:31:35] [debug#0 00075f50 in public OnPlayerDeath () from Sampever.amx
[20:31:35] [debugAMX backtrace:
[
20:31:35] [debug]  Accessing element at index 65535 past array upper bound 499
[20:31:35] [debugRun time error 4"Array index out of bounds"
[20:30:54] [debug#0 00006d20 in public OnPlayerConnect () from spsa.amx
[20:30:54] [debugAMX backtrace:
[
20:30:54] [debugRun time error 5"Invalid memory access"
[20:30:54] [joinuriel has joined the server (2:186.224.167.108)
[
20:30:53Incoming connection186.224.167.108:43098
[20:30:25] [joinRusherZz has joined the server (1:176.181.13.208)
[
20:30:24Incoming connection176.181.13.208:59392
[20:25:03] [join******* has joined the server (0:41.140.82.96)
[
20:25:03Incoming connection41.140.82.96:53099
[20:24:34] [partRobi_Willimas has left the server (0:1)
[
20:21:10] [chat] [Robi_Willimas]: hey
[20:20:49] [joinRobi_Willimas has joined the server (0:78.2.148.132)
[
20:20:48Incoming connection78.2.148.132:61463
[20:20:15Number of vehicle models108 
Reply
#2

Need HELP
Reply
#3

Post the OnplayerConnect and OnPlayerDeath code.
Reply
#4

OnPLayerConnect

Код:
public OnPlayerConnect(playerid)
{

	///My Own TextDraws
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, Textdraw4);
    ///End my onw textdwars

    new Pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, Pname, MAX_PLAYER_NAME);
 	Deaths[playerid] = dini_Int("Deaths.cfg", Pname);
 	Kills3[playerid] = dini_Int("Kills.cfg", Pname);
	new Name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,Name,sizeof(Name));
	new str[128];
	format(str,sizeof(str),"-> Welcome %s to the Server ! Enjoy Your Stay !!!",Name);
	SendClientMessage(playerid,COLOR_YELLOW,str);
	R_1[playerid] = TextDrawCreate(498.000000, 100.000000, " ");
	TextDrawBackgroundColor(R_1[playerid], 255);
	TextDrawFont(R_1[playerid], 2);
	TextDrawLetterSize(R_1[playerid], 0.250000, 0.899999);
	TextDrawColor(R_1[playerid], -1);
	TextDrawSetOutline(R_1[playerid], 0);
	TextDrawSetProportional(R_1[playerid], 1);

	TextDrawSetShadow(R_1[playerid], 1);

	Stats[playerid] = TextDrawCreate(499.000000, 110.000000, "~r~Kills: ~w~0 ~g~Deaths: ~w~0");
	TextDrawBackgroundColor(Stats[playerid], 255);
	TextDrawFont(Stats[playerid], 2);
	TextDrawLetterSize(Stats[playerid], 0.159999, 1.000000);
	TextDrawColor(Stats[playerid], -1);
	TextDrawSetOutline(Stats[playerid], 0);
	TextDrawSetProportional(Stats[playerid], 1);
	TextDrawSetShadow(Stats[playerid], 1);


   new playrname[MAX_PLAYER_NAME];
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"PARK");
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"PED");

	GameTextForPlayer(playerid,"~d~~y~Wellcome In ~b~The Gamers World ~r~Party ~d~~g~Server",5000,5);
	SendPlayerFormattedText(playerid, "{0091FF}Welcome to Gamers World Party Server ", 0);
    SendPlayerFormattedText(playerid, "{0091FF}Have Fun Play And Enjoy Also Invite Your Friends",0);
	SendClientMessage(playerid, COLOR_GREEN, "{0091FF}If You Want Your Stats To Be Saved Than Get Registered Use {FF0000}/register password.");
	SendClientMessage(playerid, COLOR_GREEN, "{0091FF}Lets start with : {FF0000}/help /Commands /Teleports.");
	gActivePlayers[playerid]++;
	gLastGaveCash[playerid] = GetTickCount();

	playerCheckpoint[playerid]=999;
	bank[playerid]=0;
	playerGang[playerid]=0;
	gangInvite[playerid]=0;

	GetPlayerName(playerid, playrname, sizeof(playrname));
	for(new i = 0; i < MAX_SAVE; i++) {

	    if(isStringSame(savedNames[i], playrname, MAX_PLAYER_NAME)) {
			GivePlayerMoney(playerid, savedInfo[i][0]);
			bank[playerid] = savedInfo[i][1];
			bounty[playerid] = savedInfo[i][2];

			savedInfo[i][0]=savedInfo[i][1]=savedInfo[i][2]=0;
			savedNames[i][0]=0;

			for(new j = 0; j < MAX_WEAPONS; j++) {
				playerWeapons[playerid][j]=savedWeapons[i][j];
				savedWeapons[i][j]=0;
			}

			SendClientMessage(playerid, COLOR_GREEN, "Your money has been restored.");
		}

}
  PLAYERLIST_authed[playerid]=false;
  return false;
}
OnPLayerDeath

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new playercash;
	new killedplayer[MAX_PLAYER_NAME];
	new string[128];

	Kills3[killerid]++;
	Deaths[playerid]++;

	playercash = GetPlayerMoney(playerid);

	if(killerid == INVALID_PLAYER_ID)
	{
        SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
	}
	 else
	{
    	SendDeathMessage(killerid,playerid,reason);
		SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
		if(bounty[playerid] > 0 && (playerGang[killerid] == 0 || playerGang[playerid] != playerGang[killerid])) {
			GetPlayerName(playerid, killedplayer, sizeof(killedplayer));
			format(string, sizeof(string), "You earned a bounty of %d for killing %s.", bounty[playerid], killedplayer);
			SendClientMessage(killerid, COLOR_GREEN, string);

			GivePlayerMoney(killerid, bounty[playerid]);
			bounty[playerid] = 0;
		}
		if(playercash > 0)  {
			GivePlayerMoney(killerid, playercash);
		}
   	}

 	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)