Pawno errors help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Pawno errors help (
/showthread.php?tid=486934)
Pawno errors help -
Zin - 11.01.2014
Im making some Lockers for my faction but i get these errors
Код:
C:\Users\Jackie\Desktop\pawno\include\ZCMD.inc(45) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
C:\Users\Zin\Desktop\pawno\include\ZCMD.inc(47) : error 017: undefined symbol "funcidx"
C:\Users\Zin\Desktop\pawno\include\ZCMD.inc(47) : warning 215: expression has no effect
C:\Users\Zin\Desktop\pawno\include\ZCMD.inc(47) : error 001: expected token: ";", but found ")"
C:\Users\Zin\Desktop\pawno\include\ZCMD.inc(47) : error 029: invalid expression, assumed zero
C:\Users\Zin\Desktop\pawno\include\ZCMD.inc(47) : fatal error 107: too many error messages on one line
Script :
Код:
#define FILTERSCRIPT
#include <ZCMD>
#define NDUTYMENU 2222
#define NDUTYMENU2 3333
#define NDUTYMENU3 4444
#define NDUTYMENU4 5555
#define NDUTYMENU5 5556
#include <a_samp>
#if defined FILTERSCRIPT
#define COLOR_TWRED 0xFF0000AA
public OnFilterScriptInit()
{
CMD:Sng(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
if(IsPlayerInRangeOfPoint(playerid,952.8961 -2841.2974 2.5812)
{
ShowPlayerDialog(playerid, NGMENU, DIALOG_STYLE_LIST, "National Guard","Duty\nUniforms\nWeapons\nUndercover\nClear Suspect\nKevlar Vest\nFirst Aid Kit\nAccessories", "Select", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_TWRED, "You are not in range of you're NG seabase lockers!");
}
} print("\n--------------------------------------");
print(" Epic Script");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
Re: Pawno errors help -
Konstantinos - 11.01.2014
Include a_samp first.
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#define NDUTYMENU 2222
#define NDUTYMENU2 3333
#define NDUTYMENU3 4444
#define NDUTYMENU4 5555
#define NDUTYMENU5 5556
#define COLOR_TWRED 0xFF0000AA
...
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Epic Script");
print("--------------------------------------\n");
return 1;
}
...
CMD:Sng(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
if(IsPlayerInRangeOfPoint(playerid,952.8961 -2841.2974 2.5812)
{
ShowPlayerDialog(playerid, NGMENU, DIALOG_STYLE_LIST, "National Guard","Duty\nUniforms\nWeapons\nUndercover\nClear Suspect\nKevlar Vest\nFirst Aid Kit\nAccessories", "Select", "Cancel");
}
else SendClientMessageEx(playerid, COLOR_TWRED, "You are not in range of you're NG seabase lockers!");
}
return 1;
}
Replace ... with declarations, callbacks or whatever you want.
Re: Pawno errors help -
Zin - 11.01.2014
I aint pro scripter i get 6 errors now
Re: Pawno errors help -
Konstantinos - 11.01.2014
And those are? Remember to replace ... with an enum (for pMember, pLeader) and declare PlayerInfo. Also SendClientMessageEx should be defined as well.