SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 14/09/2012, 02:53 PM   #1
pascalboy
Big Clucker
 
Join Date: Aug 2011
Location: lisse {nl}
Posts: 62
Reputation: 8
Default error 017 and more ;(

Hello,

i download this gamemode:

http://forum.sa-mp.com/showthread.ph...ght=race+stunt
but i have error's... this are the error's:

Code:
C:\Users\pascal\Documents\Server\pawno\include\C-Serial.inc(42) : warning 217: loose indentation
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(2709) : warning 204: symbol is assigned a value that is never used: "file"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(3213) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4386) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4391) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4396) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4743) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4745) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4747) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4767) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4800) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(4802) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(15916) : warning 203: symbol is never used: "CarIsLocked"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(15916) : warning 203: symbol is never used: "surprise"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.
please can somebody help me...


gr pascalboy
pascalboy is offline   Reply With Quote
Old 14/09/2012, 03:02 PM   #2
HyDrAtIc
High-roller
 
Join Date: Jan 2012
Posts: 1,189
Reputation: 233
Default Re: error 017 and more ;(

Define these symbols and it should work
__________________
Back to service, unbanned.
HyDrAtIc is offline   Reply With Quote
Old 14/09/2012, 03:04 PM   #3
Kirollos
Gangsta
 
Kirollos's Avatar
 
Join Date: Jun 2010
Location: Cairo, Egypt
Posts: 566
Reputation: 83
Default Re: error 017 and more ;(

update your includes to 0.3e includes. then compile the script, that should work
__________________
My github profile: https://github.com/Kirollos/

( ͡° ͜ʖ ͡°)
Kirollos is offline   Reply With Quote
Old 14/09/2012, 03:07 PM   #4
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,702
Reputation: 1176
Default Re: error 017 and more ;(

Quote:
Originally Posted by James_Nick View Post
Define these symbols and it should work
No, it isn't the solution.

Those functions are added only in 3e.
You must download 3e includes and then add it on Pawno->Include.
And then,recompile your script.
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 14/09/2012, 03:14 PM   #5
pascalboy
Big Clucker
 
Join Date: Aug 2011
Location: lisse {nl}
Posts: 62
Reputation: 8
Default Re: error 017 and more ;(

this is the beginning of the script:
Code:
#include <a_samp>
#include <lsx_includes>
#include <C-Serial>

#define pNameEx
#define LOCALHOST 1
#define CHRISTMAS_BUILD 0 // Christmas time!? :D
#define BETA_BUILD 1 // Is this a BETA build?!

#undef MAX_PLAYERS
    #define MAX_PLAYERS 10 // Change to how many slots we're using. Remember to compensate for NPCs

#if LOCALHOST == 1 // Change to 1 for localhost testing
	#define IRC_ENABLED 0
	#define CONNECT_BOTS 0
#else
    //NPC Handling
	#define CONNECT_BOTS 1 // Do we want the NPC's to connect, or not? 1 for yes, 0 for no/
    // Are we including IRC in this build?
	#define IRC_ENABLED 1
#endif

#define URL_STRING "coldfusion.americantalk.net" // Website
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)



//--------------- CONFIG OPTIONS ----------------------
#define MAX_CCTVS 100
#define MAX_CCTVMENUS 10  //(This number should be MAX_CCTVS divided by 10  (round up))
#define GIVECASH_DELAY 5000
#define CDIVE_DELAY 5000
#define V_RESPAWN_TIME      300 // Seconds. 5 minutes.
#define A_RESPAWN_TIME      60  // Seconds. 1 minute.
#define AFK_KICK_ENABLED true // switch to false to disable
#define AFK_TIME 12000 // 15 minutes AFK before you are kicked
#define DEFAULT_SPAWN_DIST 180
#define AVERROR "Access to this vehicle is prohibited to the public."
#define AV_RESPAWN_TIME 5000 // Admin vehicles
#define TAXI_WAIT_TIME 120000 // Time it takes until player can use taxi again.
#define LVXVersion 1.5.8
#define LASTUPDATE "Monday, October 13th - 2010"
#define TIMEUPDATE 22:14

#define USE_MENUS       	// Comment out to remove all menus.  Uncomment to enable menus
#define DISPLAY_CONFIG 	    // displays configuration in console window on filterscript load
#define SAVE_LOGS           // Comment out if your server runs linux (logs wont be saved)
#define ENABLE_SPEC         // Comment out if you are using a spectate system already
#define USE_STATS           // Comment out to disable /stats
#define ANTI_MINIGUN        // Displays who has a minigun
//#define HIDE_ADMINS 		// Displays number of admins online instead of level and names
#define ENABLE_FAKE_CMDS   	// Comment to disable /fakechat, /fakedeath, /fakecmd commanads

#define CASH_PRIZE 2500000 //This is the prize that the player will win when killing the terrorist!
#define WEAPON_ID 34 //This is the weapon id that all players will recieve to help kill him!
#define WEAPON_AMMO 400 //this is the ammo!
//#define STUNT_PARK   // Uncommented will create the stuntpark at SF Driving school.

#define fuckoff "Not enough money!"

#define MAX_WARNINGS 3      // /warn command

#define MAX_REPORTS 7
#define MAX_CHAT_LINES 7

#define SPAM_MAX_MSGS 5
#define SPAM_TIMELIMIT 4 // SECONDS

#define PING_MAX_EXCEEDS 4
#define PING_TIMELIMIT 60 // SECONDS

#define MAX_FAIL_LOGINS 3

#define MAX_WORLD 300000000


#define POCKET_DOSH 2500 // Amount player gets on spawning
#define CP_DRIVETHRU1 0 // A random failure

// Caps
#define UpperToLower(%1) for ( new ToLowerChar; ToLowerChar < strlen( %1 ); ToLowerChar ++ ) if ( %1[ ToLowerChar ]> 64 && %1[ ToLowerChar ] < 91 ) %1[ ToLowerChar ] += 32

// Spec
#define ADMIN_SPEC_TYPE_NONE 0
#define ADMIN_SPEC_TYPE_PLAYER 1
#define ADMIN_SPEC_TYPE_VEHICLE 2

//Christmas
#if CHRISTMAS_BUILD == 1
#define MAX_GIFT_MONEY 5000000
#endif

#define MAX_PROPERTIES 200
#define MAX_PROPERTIES_PER_PLAYER 200
#define UNBUYABLETIME 10  //If a property is bought, someone else have to wait this number of minutes before he/she can buy it.

#define ENABLE_MAP_ICON_STREAMER 0

#define MAX_POINTS 1
#define MAX_BANK 1
#define MAX_CPOINTS 1

#define MAX_GANGS 			32
#define MAX_GANG_MEMBERS	30
#define MAX_GANG_NAME       20

#define CASH_MONET 2000000

#define MAX_ACCOUNT_MONEY 200000000

#define LICENCE_COST 20000

#define MAX_XACCOUNT_DOSH 450000000
#define xACCOUNT_COST 50000000

//----------------------------------------------


// We'll define Macros in here instead of the include.
#define IsPlayerPaused(%1) GetTickCount() > (lastupdate[%1]+2000)
#define HidePlayerDialog(%1) ShowPlayerDialog(%1, -1, 0, " ", " ", " ", " ")

//Dialog ID's
#define LOGIN 1
#define DUEL_WEAPONS 2
#define DUEL_PLACES 3
#define DUEL_DECLINE 4
#define JAIL_HELP 5
#define MYTIME_DIALOG 6

#define SERVER_NAME "Los Santos FreeRoamv1.2"

//#define IRC_SERVER "irc.sa-mp.com" // new
#define IRC_SERVER "irc.foco.co" // Home :(
#define IRC_PORT (6697)
#define IRC_CHANNEL "#ice"

#if IRC_ENABLED == 1

// Keys
#define VIP_KEY "sentinelslair"
#define CREW_KEY "demigodzrunthis"

#define BOT_1_NICKNAME "GayBot"
#define BOT_1_REALNAME "Connected to LSX"
#define BOT_1_USERNAME "PlayLSX_1"

#define BOT_2_NICKNAME "LesbianBot"
#define BOT_2_REALNAME "Connected to LSX"
#define BOT_2_USERNAME "PlayLSX_2"

#define CHAT_CHAN "#ice"
#define CREW_CHAN "#ice"
#define VIP_CHAN "#ice"
#define MAX_BOTS (2)

where can i find the includes?

http://www.solidfiles.com/d/8fd5051736/ (origanal includes )
gr pascal
pascalboy is offline   Reply With Quote
Old 14/09/2012, 03:17 PM   #6
Kirollos
Gangsta
 
Kirollos's Avatar
 
Join Date: Jun 2010
Location: Cairo, Egypt
Posts: 566
Reputation: 83
Default Re: error 017 and more ;(

download the 0.3e package from here: sa-mp.com/downloads.php
__________________
My github profile: https://github.com/Kirollos/

( ͡° ͜ʖ ͡°)
Kirollos is offline   Reply With Quote
Old 14/09/2012, 03:20 PM   #7
pascalboy
Big Clucker
 
Join Date: Aug 2011
Location: lisse {nl}
Posts: 62
Reputation: 8
Default Re: error 017 and more ;(

see the download it is special for this gamemode i think...
pascalboy is offline   Reply With Quote
Old 14/09/2012, 03:44 PM   #8
mamorunl
High-roller
 
mamorunl's Avatar
 
Join Date: Feb 2007
Location: Groningen/Netherlands
Posts: 1,938
Reputation: 2246
Default Re: error 017 and more ;(

Well, have fun then

Just for fun, try downloading the 0.3e server package. You know, just for fun and try
mamorunl is offline   Reply With Quote
Old 14/09/2012, 04:14 PM   #9
pascalboy
Big Clucker
 
Join Date: Aug 2011
Location: lisse {nl}
Posts: 62
Reputation: 8
Default Re: error 017 and more ;(

i have now this error:
Code:
C:\Users\pascal\Documents\Server\pawno\include\C-Serial.inc(42) : warning 217: loose indentation
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(2706) : warning 204: symbol is assigned a value that is never used: "file"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(15913) : warning 203: symbol is never used: "CarIsLocked"
C:\Users\pascal\Documents\Server\gamemodes\LSX.pwn(15913) : warning 203: symbol is never used: "surprise"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Warnings.
pascalboy is offline   Reply With Quote
Old 14/09/2012, 05:43 PM   #10
mamorunl
High-roller
 
mamorunl's Avatar
 
Join Date: Feb 2007
Location: Groningen/Netherlands
Posts: 1,938
Reputation: 2246
Default Re: error 017 and more ;(

Even though they are only warnings... please show the surrounding lines for each block.
mamorunl is offline   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
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM
Error message: : error 030: compound statement not closed at the end of file (started at line 170) the_zohan Scripting Help 5 04/06/2012 08:38 AM
Error message: : error 030: compound statement not closed at the end of file (started at line 503) David5290 Scripting Help 5 13/04/2012 03:50 AM
[AJUDA]Erros ao Compilar atal error 107: too many error messages on one line Junior_Extreme Português/Portuguese 2 11/01/2012 04:23 PM
I get tagmismatch error, But i cant find any error error Swiftz Help Archive 1 16/04/2011 04:31 AM


All times are GMT. The time now is 07:53 AM.


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