19.07.2010, 16:32
i was using this tutorial: https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
i was fine (had 2 warnings warnings dont matter tho) till i got dini and dutlis and got this in compiler:
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(16) : error 010: invalid function or declaration
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(27) : warning 203: symbol is never used: "ret_memcpy"
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(27) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
this is the script (i just started not neraly finished so should be able to find the problem easily):
#include <a_samp>
#include <dini>
#include <dutils>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define COLOUR_GREEN 0x33AA33AA
#define COLOUR_RED 0xAA3333AA
#define COLOUR_YELLOW 0xFFFF00AA
#define COLOUR_LIGHTBLUE 0x33CCFFAA
#define COLOUR_ORANGE 0xFF9900AA
#define PlayerFile "AdminScript/Users/%s.ini"
#define SettingFile "AdminScript/Settings/MainSettings.ini"
#define CommandFile "AdminScript/Settings/Commands.ini"
"AdminScript/Users"
"AdminScript/Settings"
public OnFilterScriptInit()
{
print("\n****************************************" );
print("* AdminFS by OxGeRo *");
print("****************************************\n" );
return 1;
}
#endif
if u can fix the warnings and error and post the script that would be nice. thank you
~OxGeRo
i was fine (had 2 warnings warnings dont matter tho) till i got dini and dutlis and got this in compiler:
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(16) : error 010: invalid function or declaration
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(27) : warning 203: symbol is never used: "ret_memcpy"
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(27) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
this is the script (i just started not neraly finished so should be able to find the problem easily):
#include <a_samp>
#include <dini>
#include <dutils>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define COLOUR_GREEN 0x33AA33AA
#define COLOUR_RED 0xAA3333AA
#define COLOUR_YELLOW 0xFFFF00AA
#define COLOUR_LIGHTBLUE 0x33CCFFAA
#define COLOUR_ORANGE 0xFF9900AA
#define PlayerFile "AdminScript/Users/%s.ini"
#define SettingFile "AdminScript/Settings/MainSettings.ini"
#define CommandFile "AdminScript/Settings/Commands.ini"
"AdminScript/Users"
"AdminScript/Settings"
public OnFilterScriptInit()
{
print("\n****************************************" );
print("* AdminFS by OxGeRo *");
print("****************************************\n" );
return 1;
}
#endif
if u can fix the warnings and error and post the script that would be nice. thank you
~OxGeRo