SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/06/2018, 08:59 AM   #1
Polt
Little Clucker
 
Join Date: Jun 2018
Posts: 3
Reputation: 0
Default Compiling ERROR

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.
Polt is offline   Reply With Quote
Old 16/06/2018, 11:16 AM   #2
UFF
Banned
 
Join Date: Feb 2018
Location: Funky World
Posts: 346
Reputation: 28
Default Re: Compiling ERROR

provide us the lines of the errors!
UFF is offline   Reply With Quote
Old 16/06/2018, 11:40 AM   #3
Polt
Little Clucker
 
Join Date: Jun 2018
Posts: 3
Reputation: 0
Default Re: Compiling ERROR

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 (c) 1997-2006, ITB CompuPhase
Polt is offline   Reply With Quote
Old 16/06/2018, 12:42 PM   #4
Shadow0707
Big Clucker
 
Join Date: Sep 2016
Posts: 92
Reputation: 7
Default Re: Compiling ERROR

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.
Shadow0707 is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Error Slawiii Scripting Help 2 27/05/2015 07:31 PM
Compiling Error! Kieran_Connell Scripting Help 6 13/09/2012 06:16 AM
Compiling error: (3159) : error 025: function heading differs from prototype Joeyboy99 Scripting Help 2 10/08/2012 07:23 PM
[HELP]Got Error in Compiling Kazuo Scripting Help 3 24/10/2011 11:24 PM
Compiling error StilThere Help Archive 3 31/05/2011 09:37 PM


All times are GMT. The time now is 03:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.