help my pawno error
#1

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
Reply
#2

easy fix,

In
Код:
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(27) : warning 203: symbol is never used: "ret_memcpy"
put
Код:
#pragma unused ret_memcpy
on top

Код:
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(27) : warning 203: symbol is never used: "strtok"
put
Код:
#pragma unused strtok




EDIT:PUT THOSE 2 ON TOP

#pragma unused ret_memcpy
#pragma unused strtok
Reply
#3

yes that worked for warnings how about errors?? and how do u put the box thing around codes??
Reply
#4

helppppppppppppppppp
Reply
#5

Possibly this
Код:
"AdminScript/Users"
"AdminScript/Settings"
Reply
#6

what should i do to
"AdminScript/Users"
"AdminScript/Settings"


i already made folder
Reply
#7

Helpppppp ffs
Reply
#8

Quote:
Originally Posted by tanush
Посмотреть сообщение
easy fix,

In
Код:
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(27) : warning 203: symbol is never used: "ret_memcpy"
put
Код:
#pragma unused ret_memcpy
on top

Код:
C:\Users\MYNAME\Desktop\Favorites\[NR] Call of Duty Nuke's Return\filterscripts\admin.pwn(27) : warning 203: symbol is never used: "strtok"
put
Код:
#pragma unused strtok




EDIT:PUT THOSE 2 ON TOP

#pragma unused ret_memcpy
#pragma unused strtok
could i make an include for that so i dont always have to type it?
Reply
#9

Please for fucking sake help me! I posted on my server forums server needs to be up by august 1 and all i have left is the damn admin script please help!!! So frusterating (idc how u spell it)
Reply
#10

Quote:
Originally Posted by Яσскѕтая
Посмотреть сообщение
Possibly this
Код:
"AdminScript/Users"
"AdminScript/Settings"
you are right but how do i fix? just not include it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)