Engine.
#9

The problem is that "Random" is invalid. It's case sensitive.

It's not the same "Random" than "random".

PHP код:
if(newkeys == KEY_FIRE)
    {
        if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new 
rndNum random(1);//"R" Lowercase.
    
switch(rndNum)
    {
        case 
1// Success
        
{
                
TogglePlayerControllable(playerid1);
                
engineOn[vehicle] = 1;
                
SendClientMessage(playeridCOLOR_RED"The engine started normaly.");
               
        }
        case 
0// Fail
        
{
                
engineOn[vehicle] = 0;
                
SendClientMessage(playeridCOLOR_RED"The engine didn't start,try again.");
        }
    }
    }
    return 
1;

Reply


Messages In This Thread
Engine. - by dorperez - 02.02.2013, 16:14
Re: Engine. - by T0pAz - 02.02.2013, 16:16
Re: Engine. - by dorperez - 02.02.2013, 16:53
Re: Engine. - by T0pAz - 02.02.2013, 16:57
Re: Engine. - by dorperez - 02.02.2013, 17:04
Re: Engine. - by dorperez - 08.02.2013, 15:30
Re: Engine. - by Riddick94 - 08.02.2013, 15:33
Re: Engine. - by dorperez - 08.02.2013, 15:42
Re: Engine. - by ThePhenix - 08.02.2013, 15:45
Re: Engine. - by dorperez - 08.02.2013, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)