Second case not being run
#2

Try this:
Код:
 case 2:
public InitPlayerHospitalize(playerid)
{
    if(IsPlayerConnected(playerid) && GetPVarInt(playerid, "LoggedIn"))
    {
        switch(Player[playerid][pHospitalized])
        {
            case 1:
            {
                TogglePlayerSpectating(playerid, true);

                new
                    rand = random(3);//<-- like this

                switch(rand)
                {
                    case 0:
Reply


Messages In This Thread
Second case not being run - by arko123 - 04.08.2014, 13:58
Re : Second case not being run - by Lexus95 - 04.08.2014, 14:05
Re: Second case not being run - by BroZeus - 04.08.2014, 14:05
Re: Second case not being run - by arko123 - 04.08.2014, 14:08
Re: Second case not being run - by arko123 - 04.08.2014, 17:51
Re: Second case not being run - by Dignity - 04.08.2014, 17:56
Re: Second case not being run - by arko123 - 04.08.2014, 18:13
Re: Second case not being run - by Dignity - 04.08.2014, 18:21
Re: Second case not being run - by arko123 - 04.08.2014, 18:24
Re: Second case not being run - by Dignity - 04.08.2014, 18:27

Forum Jump:


Users browsing this thread: 2 Guest(s)