AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved What is making the game crash? (https://forums.alliedmods.net/showthread.php?t=312278)

manicogaming 11-24-2018 10:28

What is making the game crash?
 
1 Attachment(s)
I need help because I have no idea how this code is making the game crash.

Cruze 11-24-2018 12:17

Re: What is making the game crash?
 
11467 lines 0_0

Ermert1992 11-25-2018 03:05

Re: What is making the game crash?
 
Maybe the 214 switch case...

PC Gamer 11-25-2018 11:32

Re: What is making the game crash?
 
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)
                                {



All times are GMT -4. The time now is 12:21.

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