[HELP]Making checkpoint
#6

This should fix the warnings:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/startroute", true, 11))
    {
        if(state[playerid] == 0)
        {
            SetPlayerCheckpoint(playerid, x, y, z, 5.00);   //replace x, y, z with the coordinates of the 1. route point
            state[playerid] = 1;
            return 1;
        }
    }
    return 0;
}

public OnPlayerEnterCheckpoint(playerid)
{
    switch(state[playerid])
    {
        case 1:
        {
            SetPlayerCheckpoint(playerid, x, y, z, 5.00);   //replace x, y, z with the coordinates of the 2. route point
            state[playerid]++;
        }
        case 2:
        {
            SetPlayerCheckpoint(playerid, x, y, z, 5.00);   //replace x, y, z with the coordinates of the 3. route point
            state[playerid]++;
        }
        case 3:
        {
            SetPlayerCheckpoint(playerid, x, y, z, 5.00);   //replace x, y, z with the coordinates of the 4. route point
            state[playerid]++;
        }
    }
    return 1;
}
Quote:
Originally Posted by Steven82
Посмотреть сообщение
Thanks for not showing us the lines becuz that really helps.............
The code is posted above...
Reply


Messages In This Thread
[HELP]Making checkpoint - by Thebest96 - 17.08.2010, 15:28
Re: [HELP]Making checkpoint - by Sascha - 17.08.2010, 16:37
Re: [HELP]Making checkpoint - by Thebest96 - 17.08.2010, 19:07
Re: [HELP]Making checkpoint - by Thebest96 - 17.08.2010, 21:01
Re: [HELP]Making checkpoint - by Steven82 - 17.08.2010, 22:33
Re: [HELP]Making checkpoint - by PotH3Ad - 18.08.2010, 01:09
Re: [HELP]Making checkpoint - by Thebest96 - 18.08.2010, 05:56
Re: [HELP]Making checkpoint - by ikey07 - 18.08.2010, 06:28
Re: [HELP]Making checkpoint - by Thebest96 - 18.08.2010, 08:14
Re: [HELP]Making checkpoint - by Thebest96 - 18.08.2010, 11:20

Forum Jump:


Users browsing this thread: 3 Guest(s)