Sometan new
#1

ok first at top under #include <a_samp>

pawn Код:
new CheckPoint[MAX_PLAYERS];
new MCP;
then under onplayerspawn
pawn Код:
MCP = SetPlayerCheckpoint(playerid, -329.5715, 1536.9965, 76.6117, 4.0);
then onplayerentercheckpoint
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(CheckPoint == MCP)
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,316.524993,-167.706985,999.593750);
        return 1;
    }
    return 0;
}
and these errors

Код:
C:\Users\Charlie\Desktop\server 2\gamemodes\BEvA51B.pwn(1134) : error 033: array must be indexed (variable "CheckPoint")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Someone helps?? if not this way then is there another way to make multi-checkpoints without streamers?

EDIT: Line 1134

pawn Код:
if(CheckPoint == MCP)
Reply
#2

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(CheckPoint[playerid] == MCP)
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,316.524993,-167.706985,999.593750);
        return 1;
    }
    return 0;
}
Reply
#3

new MCP[256];
Reply
#4

new CheckPoint; instead of new CheckPoint[MAX_PLAYERS];

It worked without errors, and add return 1; at the bottom of onplayerentercheckpoint

I don't know much about muti-checkpoints, sorry if this doesn't help.
Reply
#5

ok first no warning no errors
second kar the 265 wasnt needed
third when i enter checkpoint ingame nothin happens

EDIT: Dark that just brought moar errors
Reply
#6

Im not called first lolz hope u fix ur problem m8.

Edit: I use a steamer so can't help sorry
Reply
#7

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Im not called first lolz hope u fix ur problem m8.

Edit: I use a steamer so can't help sorry
lol moo! and i may stream soon lol
Reply
#8

start back over. what line is 1134... SPECIFIy the lines pl0x
Reply
#9

ok everything since we added

at top
pawn Код:
new CheckPoint[MAX_PLAYERS];
new MCP;
OnPlayerSpawn
pawn Код:
MCP = SetPlayerCheckpoint(playerid, -329.5715, 1536.9965, 76.6117, 4.0);
OnPlayerEnterCheckpoint
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(CheckPoint[playerid] == MCP)
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,316.524993,-167.706985,999.593750);
        return 1;
    }
    return 0;
}
NO ERRORS JUST NOTHING HAPPENS WHEN ENTERS CP
Reply
#10

Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(CheckPoint[playerid] == MCP)
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,316.524993,-167.706985,999.593750);
        return 1;
    }
    return 1; // You returned 0...
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)