SA-MP Forums Archive
Compiling 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)
+--- Thread: Compiling ERROR (/showthread.php?tid=655225)



Compiling ERROR - Polt - 16.06.2018

whenever i try to compile i get these errors
Someone please help me out

error 020: invalid symbol name ""
error 001: expected token: "#endif", but found "-end of file-"
error 013: no entry point (no public functions)

I can share the script too if you want but please help me out to fix this.


Re: Compiling ERROR - UFF - 16.06.2018

provide us the lines of the errors!


Re: Compiling ERROR - Polt - 16.06.2018

Quote:

return 1;
}

CMD:apa(playerid, params[]) return cmd_armypackage(playerid, params);

forward DropPackage(Float,Float:y,Float:z,obj, id);
public DropPackage(Float,Float:y,Float:z,obj, id)
{
DestroyDynamicObject(obj);
ArmyCrate[id] = CreateDynamicObject(964, x, y, z-1.15, 0, 0, 0, -1, -1, -1, 200.0, 0.0);
armylabel[id] = Create3DTextLabel("Army Crate Drop\nF to use", grey, x, y, z, 40.0, 0, 0);
CrateDespawnTimer[id] = SetTimerEx("DespawnPackage", 60*1000, 0, "i", id);
return 1;
}

forward DespawnPackage(id);
public DespawnPackage(id)
{
DestroyDynamicObject(ArmyCrate[id]);
ArmyCrate[id] = -1;
crateexists[id] = false;
Delete3DTextLabel(armylabel[id]);
return 1;
main()

Last few lines of script since i can't out all the things
and there error :
Quote:

C:\Users\xyz\Desktop\MW3SAMP-master\gamemodes\CODMW3.pwn(1) : error 020: invalid symbol name ""
C:\Users\xyz\Desktop\MW3SAMP-master\gamemodes\CODMW3.pwn(42710) : error 001: expected token: "#endif", but found "-end of file-"
C:\Users\xyz\Desktop\MW3SAMP-master\gamemodes\CODMW3.pwn(42710) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase



Re: Compiling ERROR - Shadow0707 - 16.06.2018

try removing this

PHP Code:
main() 
it will become

PHP Code:
return 1;
}

CMD:apa(playeridparams[]) return cmd_armypackage(playeridparams);

forward DropPackage(Float,Float:y,Float:z,objid);
public 
DropPackage(Float,Float:y,Float:z,objid)
{
DestroyDynamicObject(obj);
ArmyCrate[id] = CreateDynamicObject(964xyz-1.15000, -1, -1, -1200.00.0);
armylabel[id] = Create3DTextLabel("Army Crate Drop\nF to use"greyxyz40.000);
CrateDespawnTimer[id] = SetTimerEx("DespawnPackage"60*10000"i"id);
return 
1;
}

forward DespawnPackage(id);
public 
DespawnPackage(id)
{
DestroyDynamicObject(ArmyCrate[id]);
ArmyCrate[id] = -1;
crateexists[id] = false;
Delete3DTextLabel(armylabel[id]);
return 
1
if still not fixed please provide specific line of error.