Problem here.
#1

Error i get
Код:
C:\Users\Robins\Desktop\New folder\gamemodes\IBP.pwn(700) : error 017: undefined symbol "CHECKPOINT_STORE"
C:\Users\Robins\Desktop\New folder\gamemodes\IBP.pwn(723) : error 054: unmatched closing brace ("}")
C:\Users\Robins\Desktop\New folder\gamemodes\IBP.pwn(723) : error 010: invalid function or declaration
pawn Код:
new CheckpointAreaType[23][1] = {
{CHECKPOINT_GUN},
{CHECKPOINT_STORE},
{CHECKPOINT_BANK},
{CHECKPOINT_BAR},
{CHECKPOINT_REST},
{CHECKPOINT_DMV},
{CHECKPOINT_LSPD},
{CHECKPOINT_STORE},
{CHECKPOINT_STORE},
{CHECKPOINT_STORE},
{CHECKPOINT_STORE},
{CHECKPOINT_STORE},
{CHECKPOINT_BAR},
{CHECKPOINT_BAR},
{CHECKPOINT_BAR},
{CHECKPOINT_BAR},
{CHECKPOINT_GUN},
{CHECKPOINT_CLUCK},
{CHECKPOINT_PIZZA},
{CHECKPOINT_BURGER},
{CHECKPOINT_CLOTHES},
{CHECKPOINT_CLOTHES},
{CHECKPOINT_CLOTHES}

};
Reply
#2

The errors are pretty self-explanatory. You need to #define CHECKPOINT_STORE at the top of the script or wherever. You've probably forgotten to do that. Secondly, you have a closing bracket that isn't paired with an opening bracket. Thirdly, you've probably typed a function wrong. It'd be more helpful if we knew which lines in the script the code you posted was at.
Reply
#3

show the whole script please !!
Reply
#4

pawn Код:
#define CHECKPOINT_GUN
#define CHECKPOINT_STORE
#define CHECKPOINT_BANK
#define CHECKPOINT_BAR
#define CHECKPOINT_REST
#define CHECKPOINT_DMV
#define CHECKPOINT_LSPD
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_GUN
#define CHECKPOINT_CLUCK
#define CHECKPOINT_PIZZA
#define CHECKPOINT_BURGER
#define CHECKPOINT_CLOTHES
#define CHECKPOINT_CLOTHES
#define CHECKPOINT_CLOTHES
pawn Код:
new CheckpointAreaType[23][1] = {
"CHECKPOINT_GUN",
"CHECKPOINT_STORE",
"CHECKPOINT_BANK",
"CHECKPOINT_BAR",
"CHECKPOINT_REST",
"CHECKPOINT_DMV",
"CHECKPOINT_LSPD",
"CHECKPOINT_STORE",
"CHECKPOINT_STORE",
"CHECKPOINT_STORE",
"CHECKPOINT_STORE",
"CHECKPOINT_STORE",
"CHECKPOINT_BAR",
"CHECKPOINT_BAR",
"CHECKPOINT_BAR",
"CHECKPOINT_BAR",
"CHECKPOINT_GUN",
"CHECKPOINT_CLUCK",
"CHECKPOINT_PIZZA",
"CHECKPOINT_BURGER",
"CHECKPOINT_CLOTHES",
"CHECKPOINT_CLOTHES",
"CHECKPOINT_CLOTHES"
};
I think it's something like this. Not sure.
Reply
#5

Quote:
Originally Posted by sniperwars
Посмотреть сообщение
pawn Код:
#define CHECKPOINT_GUN
#define CHECKPOINT_STORE
#define CHECKPOINT_BANK
#define CHECKPOINT_BAR
#define CHECKPOINT_REST
#define CHECKPOINT_DMV
#define CHECKPOINT_LSPD
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_GUN
#define CHECKPOINT_CLUCK
#define CHECKPOINT_PIZZA
#define CHECKPOINT_BURGER
#define CHECKPOINT_CLOTHES
#define CHECKPOINT_CLOTHES
#define CHECKPOINT_CLOTHES
I think it's something like this. Not sure.
Well, that would be pretty stupid because you're not defining them a value.
Reply
#6

Quote:
Originally Posted by sniperwars
Посмотреть сообщение
pawn Код:
#define CHECKPOINT_GUN
#define CHECKPOINT_STORE
#define CHECKPOINT_BANK
#define CHECKPOINT_BAR
#define CHECKPOINT_REST
#define CHECKPOINT_DMV
#define CHECKPOINT_LSPD
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_STORE
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_BAR
#define CHECKPOINT_GUN
#define CHECKPOINT_CLUCK
#define CHECKPOINT_PIZZA
#define CHECKPOINT_BURGER
#define CHECKPOINT_CLOTHES
#define CHECKPOINT_CLOTHES
#define CHECKPOINT_CLOTHES
pawn Код:
new CheckpointAreaType[23][1] = {
"CHECKPOINT_GUN",
"CHECKPOINT_STORE",
"CHECKPOINT_BANK",
"CHECKPOINT_BAR",
"CHECKPOINT_REST",
"CHECKPOINT_DMV",
"CHECKPOINT_LSPD",
"CHECKPOINT_STORE",
"CHECKPOINT_STORE",
"CHECKPOINT_STORE",
"CHECKPOINT_STORE",
"CHECKPOINT_STORE",
"CHECKPOINT_BAR",
"CHECKPOINT_BAR",
"CHECKPOINT_BAR",
"CHECKPOINT_BAR",
"CHECKPOINT_GUN",
"CHECKPOINT_CLUCK",
"CHECKPOINT_PIZZA",
"CHECKPOINT_BURGER",
"CHECKPOINT_CLOTHES",
"CHECKPOINT_CLOTHES",
"CHECKPOINT_CLOTHES"
};
I think it's something like this. Not sure.
i still get this

Код:
C:\Users\Robins\Desktop\New folder\gamemodes\IBP.pwn(725) : error 017: undefined symbol "CHECKPOINT_STORE"
C:\Users\Robins\Desktop\New folder\gamemodes\IBP.pwn(747) : error 010: invalid function or declaration
Reply
#7

How will you use this?
Reply
#8

Here is the call back for checkpoint. http://pastebin.com/cKJvBjK3
Reply
#9

pawn Код:
new CheckpointAreaType[23] = {
CHECKPOINT_GUN,
CHECKPOINT_STORE,
CHECKPOINT_BANK,
CHECKPOINT_BAR,
CHECKPOINT_REST,
CHECKPOINT_DMV,
CHECKPOINT_LSPD,
CHECKPOINT_STORE,
CHECKPOINT_STORE,
CHECKPOINT_STORE,
CHECKPOINT_STORE,
CHECKPOINT_STORE,
CHECKPOINT_BAR,
CHECKPOINT_BAR,
CHECKPOINT_BAR,
CHECKPOINT_BAR,
CHECKPOINT_GUN,
CHECKPOINT_CLUCK,
CHECKPOINT_PIZZA,
CHECKPOINT_BURGER,
CHECKPOINT_CLOTHES,
CHECKPOINT_CLOTHES,
CHECKPOINT_CLOTHES
};
Reply
#10

One more problem
Код:
C:\Users\Robins\Desktop\New folder\pawno\include\/CRP/Publics/OnPlayerEnterCheckpoint.pwn(13) : error 017: undefined symbol "CHECKPOINT_NONE"
C:\Users\Robins\Desktop\New folder\pawno\include\/CRP/Publics/OnPlayerEnterCheckpoint.pwn(15) : error 017: undefined symbol "ATMs"
code
pawn Код:
case CHECKPOINT_NONE:
        {
            for(new i = 0; i < ATMs; i++)
            {
                if(IsAtATM(playerid))
                {
                    ShowPlayerDialog(playerid, 143, DIALOG_STYLE_LIST, "Automatic Transaction Machine", "Withdraw\nBalance Enquiry", "Select", "Cancel");
                }
            }
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)