Raised This Month: $ Target: $400
 0% 

ArrayGetString


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-10-2019 , 15:57   ArrayGetString
Reply With Quote #1

PHP Code:
L 07/10/2019 03:05:27Invalid index 919119408 (count0)
L 07/10/2019 03:05:27: [AMXXDisplaying debug trace (plugin "jailbreak_lastrequest.amxx")
L 07/10/2019 03:05:27: [AMXXRun time error 10native error (native "ArrayGetString")
L 07/10/2019 03:05:27: [AMXX]    [0jailbreak_lastrequest.sma::StopLR (line 3682)
L 07/10/2019 03:05:27: [AMXX]    [1jailbreak_lastrequest.sma::TaskStopLR (line 3671
Code:
public TaskStopLR(Data[])
{
	StopLR(Data[0]);
}

StopLR(pWinner = 0)
{
	if (g_iLRRunning)
	{
		if (pWinner != 0)
		{
			new iLen, szSound[64], iMinPlayers;

			ArrayGetString(g_arrayWinSounds, random(ArraySize(g_arrayWinSounds)), szSound, charsmax(szSound)); // here

			iMinPlayers = get_pcvar_num(jb_keys_min_players);
			iLen = strlen(szSound);

			if (szSound[iLen - 3] == 'm' && szSound[iLen - 2] == 'p' && szSound[iLen - 1] == '3')
				client_cmd(0, "mp3 play ^"sound/%s^"", szSound);
			else
				client_cmd(0, "spk ^"%s^"", szSound);

			if (GetPlayersNum("ch") >= iMinPlayers)
			{
				switch(random_num(1, 10))
				{
					case 1:
					{
						g_iKeys[pWinner] += 1;
						jb_client_print(pWinner, "Congrulations! You won^4 1 Key^1 and stayed with^3 %i Key(s)^1.", g_iKeys[pWinner]);
					}
					default:
					{
						jb_client_print(pWinner, "Sorry, you didn't win any Key. Good luck next time!");
					}
				}
			}
			else
			{
				jb_client_print(pWinner, "^4*%d players^1 must be online to get^3 key^1.", iMinPlayers);
			}
		}
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode