SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 05/06/2012, 04:50 PM   #1
Vegas.
Big Clucker
 
Join Date: Dec 2011
Posts: 122
Reputation: 6
Default About core.inc..

I've got this problem, I don't now how, it apperead now.. i tried to replace with the new one, but it gives the same error..
Code:
C:\Documents and Settings\Vegas\Desktop\DV RP\DV RP\DV RP\pawno\include\core.inc(12) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Vegas. is offline   Reply With Quote
Old 05/06/2012, 04:58 PM   #2
JustinAn
Huge Clucker
 
JustinAn's Avatar
 
Join Date: Apr 2012
Location: Why?
Posts: 238
Reputation: 27
Default Re: About core.inc..

Can you post the code so I know what line it is?
JustinAn is offline   Reply With Quote
Old 05/06/2012, 05:04 PM   #3
Vegas.
Big Clucker
 
Join Date: Dec 2011
Posts: 122
Reputation: 6
Default Re: About core.inc..

Here you are..
Quote:
/* Core functions
*
* (c) Copyright 1998-2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _core_included
#endinput
#endif
#define _core_included
#pragma library Core

native heapspace();

native funcidx(const name[]);

native numargs();
native getarg(arg, index=0);
native setarg(arg, index=0, value);

native tolower(c);
native toupper(c);
native swapchars(c);

native random(max);

native min(value1, value2);
native max(value1, value2);
native clamp(value, min=cellmin, max=cellmax);

native getproperty(id=0, const name[]="", value=cellmin, string[]="");
native setproperty(id=0, const name[]="", value=cellmin, const string[]="");
native deleteproperty(id=0, const name[]="", value=cellmin);
native existproperty(id=0, const name[]="", value=cellmin);
Vegas. is offline   Reply With Quote
Old 05/06/2012, 05:04 PM   #4
Elysian`
Banned
 
Join Date: Apr 2012
Location: Locating...
Posts: 460
Reputation: 35
Default Re: About core.inc..

Omg, the line IN your script.
Elysian` is offline   Reply With Quote
Old 05/06/2012, 05:09 PM   #5
Jonny5
Gangsta
 
Join Date: Mar 2012
Location: Mi, USA
Posts: 935
Reputation: 146
Default Re: About core.inc..

Quote:
Originally Posted by Windows32 View Post
Omg, the line IN your script.

what he posted the code


the line is

native heapspace();

@OP not sure, make sure you have the latest includes, and server package!

but i think this is an old native not sure why

show how you include the files at the top of your mode.
__________________
If your topic says "REP+", I ignore it.

If you haven't tried it I suggest you do so.
Pawn PlayGround By Slice!
Jonny5 is offline   Reply With Quote
Old 05/06/2012, 05:09 PM   #6
Vegas.
Big Clucker
 
Join Date: Dec 2011
Posts: 122
Reputation: 6
Default Re: About core.inc..

Don't be stupid.. This is from 1 to 19 line:

Quote:
s/****************************************\
** **
** Division RP **
** by Hudiga & Vegas. **
** **
\****************************************/
//-------------------------------------------------------------------------Evidencija------------------------------------------------------------------|
/*-------------------------------Uradjene stvari---------------------------*\------------------------Treba uraditi-------------------------------------|
1. Reg/Log dijalozi i TD-ovi sredjeni. | 1. Evente --- URADJENO |
2. Smanjena plata svim igracima. | 2. Treba popraviti /v lock --- URADJENO |
3. Uradjen novi /equip za | 3. Treba napraviti TextDraw-ove za vozila na prodaju i kuce na prodaju |
4. Uradjena Street Racers org | |
5. Uradjena cmd /barikada za Street racerse | |
6. Ubacen novi spawn, interior, rent motori. | |
7. Ubacena auta za prodaju | |
8. Ubacen štit za PD | |
9. Ubacene rotacije za sultan | |
10. Ubaceno bacanje i podizanje oruzja | |
//----------------------------------------------------------------------------------------------------------------------------------------------------*/
Vegas. is offline   Reply With Quote
Old 29/06/2012, 10:20 AM   #7
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,953
Reputation: 1254
Default Re: About core.inc..

Perhaps this is a late comment. But:

As first you have 's' at the begin. Remove that 's'.
Secondly, '/*' starts the commenting. '*/' close it. You have:
Code:
/*-------------------------------Uradjene stvari---------------------------*\------------------------Treba uraditi-------------------------------------|
So after that '*\' the comments are closed. All the text after that isn't a commentand is trying to be compiled as a normal script (which will fail ).
So, (if this is your script), it should look like this:
pawn Code:
/****************************************\
** **
** Division RP **
** by Hudiga & Vegas. **
** **
\****************************************/

//-------------------------------------------------------------------------Evidencija------------------------------------------------------------------|
/*-------------------------------Uradjene stvari---------------------------------------------------Treba uraditi-------------------------------------|
1. Reg/Log dijalozi i TD-ovi sredjeni. | 1. Evente --- URADJENO |
2. Smanjena plata svim igracima. | 2. Treba popraviti /v lock --- URADJENO |
3. Uradjen novi /equip za | 3. Treba napraviti TextDraw-ove za vozila na prodaju i kuce na prodaju |
4. Uradjena Street Racers org | |
5. Uradjena cmd /barikada za Street racerse | |
6. Ubacen novi spawn, interior, rent motori. | |
7. Ubacena auta za prodaju | |
8. Ubacen Ütit za PD | |
9. Ubacene rotacije za sultan | |
10. Ubaceno bacanje i podizanje oruzja | |
//----------------------------------------------------------------------------------------------------------------------------------------------------*/
(Oyeah btw, it would be nice to use [ pawn ] instead of [ code ])
__________________
Current version of Mafia III: San Andreas: v0.3.104-A
Last update: 16-11-2014 16:03(GMT+1): Improved password hashing (it's 'trillions of trillions times' safer now)
Currently working on: Businesses system

Website launched (yet under maintance): http://www.m3sa.nl/
Kwarde 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
Core.inc Error. PowerSurge Scripting Help 3 04/06/2012 01:25 PM
[help] Core.inc error noobre Help Archive 9 04/07/2011 11:30 PM
Core.ini Zeros Help Archive 7 31/05/2010 02:10 PM
Error from core.inc? Redirect Left Help Archive 1 25/01/2010 03:38 PM


All times are GMT. The time now is 08:56 PM.


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