Mission help.
#3

Quote:
Originally Posted by iggy1
Посмотреть сообщение
pawn Код:
if(newkeys & KEY_SUBMISSION)
Try that. Also the second dimension on the 2d array only needs to be 3 cells big not 14. First dimension is 14.
You could leave both them without specifying a size and the compiler will calculate the size at compile time. Then you can add more co-ords w/o worrying about size.
ahk cheers for the tip.

i tested the code and it didn't work.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SUBMISSION)
    {
        if(IsPlayerInVehicle(playerid, 5))
        {
            new rand = random(sizeof(VanUnloads));
            SetPlayerRaceCheckpoint(playerid, 0,VanUnloads[rand][0], VanUnloads[rand][1],VanUnloads[rand][2],0,0,0,10);
            printf("Played %s has started a van mission",GetName(playerid));
        }
    }
    return 1;
}
Is that how it should be?
Reply


Messages In This Thread
Mission help. - by Haydz - 18.01.2011, 12:45
Re: Mission help. - by iggy1 - 18.01.2011, 12:52
Re: Mission help. - by Haydz - 18.01.2011, 12:58
Re: Mission help. - by iggy1 - 18.01.2011, 13:07
Re: Mission help. - by Haydz - 18.01.2011, 13:13
Re: Mission help. - by iggy1 - 18.01.2011, 13:20
Re: Mission help. - by Haydz - 18.01.2011, 13:29
Re: Mission help. - by iggy1 - 18.01.2011, 13:34

Forum Jump:


Users browsing this thread: 2 Guest(s)