SA-MP Forums Archive
help my pawno error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help my pawno error (/showthread.php?tid=161320)



help my pawno error - OxGeRo - 19.07.2010

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


Re: help my pawno error - tanush - 19.07.2010

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


Re: help my pawno error - OxGeRo - 19.07.2010

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


Re: help my pawno error - OxGeRo - 19.07.2010

helppppppppppppppppp


Re: help my pawno error - Яσскѕтая - 19.07.2010

Possibly this
Код:
"AdminScript/Users"
"AdminScript/Settings"



Re: help my pawno error - OxGeRo - 19.07.2010

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


i already made folder


Re: help my pawno error - OxGeRo - 20.07.2010

Helpppppp ffs


Re: help my pawno error - OxGeRo - 20.07.2010

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?


Re: help my pawno error - OxGeRo - 20.07.2010

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)


Re: help my pawno error - OxGeRo - 20.07.2010

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