Raised This Month: $ Target: $400
 0% 

Solved What is making the game crash?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manicogaming
AlliedModders Donor
Join Date: Aug 2014
Old 11-24-2018 , 10:28   What is making the game crash?
Reply With Quote #1

I need help because I have no idea how this code is making the game crash.
Attached Files
File Type: sp Get Plugin or Get Source (GiveBotsCosmetics.sp - 164 views - 237.0 KB)

Last edited by manicogaming; 11-04-2020 at 14:48.
manicogaming is offline
Cruze
Veteran Member
Join Date: May 2017
Old 11-24-2018 , 12:17   Re: What is making the game crash?
Reply With Quote #2

11467 lines 0_0
__________________
Taking paid private requests! Add me on steam/discord!
AlliedModders Releases | Github | Private Plugins | Steam | Discord
Cruze is offline
Ermert1992
Member
Join Date: Jan 2012
Location: Germany
Old 11-25-2018 , 03:05   Re: What is making the game crash?
Reply With Quote #3

Maybe the 214 switch case...
__________________
Mfg Jonas


Ermert1992 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-25-2018 , 11:32   Re: What is making the game crash?
Reply With Quote #4

This may fix it.....

change the zero to a one in each of these:
int rnd = GetRandomInt(0,46);


Do this for each of your classes since you don't have a Case 0 for any of them.

for example, change:
Code:
			case TFClass_Soldier:
			{
				int rnd = GetRandomInt(0,46);
				switch (rnd)
				{

To read:

			case TFClass_Soldier:
			{
				int rnd = GetRandomInt(1,46);
				switch (rnd)
				{
PC Gamer is offline
Reply


Thread Tools
Display Modes

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 13:12.


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