21.12.2010, 23:41
I did made my commands in commands.inc but when i do it it give a 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
//In Gamemode
//Other
I did try this, but it doesnt work.
and this
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.
//Things that need for line 1.
Line 1:
//In commands.inc
pawn Код:
new USERPW "steef"
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;
}
}
pawn Код:
new USERPW[6] ''Password'';
pawn Код:
#define USERPW[6] 'Steef';