commands.inc
#1

I did made my commands in commands.inc but when i do it it give a error

pawn Код:
C:\Documents and Settings\Gebruiker\Bureaublad\ProjectRP\pawno\include\commands.inc(1) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
and when i make all my commands in my gamemode it give no error ? does some know what i did wrong?
Reply
#2

Show us your include? Maybe? Pff...
Reply
#3

post your code
Reply
#4

You mean line 1? If i need to post the whole include i spam the forum because its 7547 lines

//Things that need for line 1.
Line 1:
//In commands.inc
pawn Код:
new USERPW "steef"
//In Gamemode
pawn Код:
if(!strcmp(string1x, userpw, true))
{
    playervar[playerid] = 1;
    return 1;
}

//Other
pawn Код:
CMD:checkvar(playerid, params[])
{
    if (playervar[playerid] > 0)
    {
        playervarx = 9999;
        playervar[playerid] = 0;
    }
}
Reply
#5

pawn Код:
new USERPW[6] = "steef"
You were setting a string into an integer variable, and you forgot the equal sign.
Reply
#6

pawn Код:
new USERPW[6] = "steef";
You forgot the ;
Reply
#7

friend of me did say the same thing, but it gives the same error.
Reply
#8

so what is the problem
Reply
#9

bump
Reply
#10

bumpiebumpie;d
Reply
#11

Don't bump, I guess you just forgot ;
Reply
#12

i think maybe you wanted to do define?...
instead of new USERPW "steef"
try #define USERPW "steef"
Reply
#13

Omg, i did already

#define USERPW[6] 'Steef'; doesnt work!


Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
pawn Код:
new USERPW[6] = "steef";
You forgot the ;
friend of me did say the same thing, but it gives the same error.
Reply
#14

bThe message you have entered is too short. Please lengthen your message to at least 4 characters.
Reply
#15

bump
Reply
#16

Replace
Код:
new USERPW steef
with
Код:
#define USERPW steef
and if say "userpw" isn't defined, or something like this, replace
Код:
#define USERPW steef
with
Код:
#define userpw steef
Reply
#17

I did made my commands in commands.inc but when i do it it give a error

pawn Код:
C:\Documents and Settings\Gebruiker\Bureaublad\ProjectRP\pawno\include\commands.inc(1) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
and when i make all my commands in my gamemode it give no error ? does some know what i did wrong?


//Things that need for line 1.
Line 1:
//In commands.inc
pawn Код:
new USERPW "steef"
//In Gamemode
pawn Код:
if(!strcmp(string1x, userpw, true))
{
    playervar[playerid] = 1;
    return 1;
}

//Other
pawn Код:
CMD:checkvar(playerid, params[])
{
    if (playervar[playerid] > 0)
    {
        playervarx = 9999;
        playervar[playerid] = 0;
    }
}
I did try this, but it doesnt work.
pawn Код:
new USERPW[6] ''Password'';
and this
pawn Код:
#define USERPW[6] 'Steef';
Reply
#18

FALSE
Quote:
Originally Posted by sjvt
Посмотреть сообщение
pawn Код:
new USERPW "steef"
pawn Код:
new USERPW[6] ''Password'';
CORRECT
Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
pawn Код:
new USERPW[6] = "steef";
FALSE
Quote:
Originally Posted by sjvt
Посмотреть сообщение
pawn Код:
#define USERPW[6] 'Steef';
CORRECT
Quote:
Originally Posted by XePloiT
Посмотреть сообщение
pawn Код:
#define USERPW "steef"
And whats the matter with the checkvar command ?
Reply
#19

oh sorry, i have that what you said. and still not working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)