Core.inc Error.
#1

Help, i have an error with core.inc.
I havent tried editing it, and it worked just fine untill i added:
pawn Код:
(PlayerInfo[playerid][pAdmin] < 1)
which worked just fine..

Until i added it under a teleport, which also worked.



Full, Non-Working Code:
pawn Код:
if (strcmp(cmdtext, "/adhq", true) == 0)
        {
        if(PlayerInfo[playerid][pAdmin] < 1)
        SendClientMessage(playerid, GREEN, "Well Done for getting here! keep it up!");
        SendClientMessage(playerid, PURPLE, " |- Commands -|");
        SendClientMessage(playerid, PURPLE, " /adminlift /admingarage /adminopen");
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,216.0368,1911.4246,17.6406);
    return 1;
        }
when i added;
pawn Код:
(PlayerInfo[playerid][pAdmin] < 1)
i compiled it and it said this:
Код:
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\pawno\include\core.inc(12) : error 010: invalid function or declaration
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6290) : warning 203: symbol is never used: "CountDelay"
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6290) : warning 203: symbol is never used: "isblank"
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(685) : warning 204: symbol is assigned a value that is never used: "obj1"
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(686) : warning 204: symbol is assigned a value that is never used: "obj2"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Can anyone help me with the Core Error?
Line 12 of core.inc is
pawn Код:
native heapspace();
I re-downloaded the server source and replaced it, copying my Gamemode to the new directory, and it came up with this:
Код:
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\pawno\include\core.inc(12) : error 010: invalid function or declaration
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6160) : error 076: syntax error in the expression, or invalid function call
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6161) : error 076: syntax error in the expression, or invalid function call
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6164) : error 025: function heading differs from prototype
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6168) : error 025: function heading differs from prototype
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6172) : error 025: function heading differs from prototype
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6290) : warning 203: symbol is never used: "CountDelay"
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(6290) : warning 203: symbol is never used: "isblank"
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(685) : warning 204: symbol is assigned a value that is never used: "obj1"
C:\Users\Michael & Sophie\Desktop\Server\samp02Xserver.win32\gamemodes\FMJ.pwn(686) : warning 204: symbol is assigned a value that is never used: "obj2"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Info:
My Gamemode is an edited version of Seif's 'Stuntz 'n' Driftz 'n' Race 'n' Pwn!'

Can someone please help?
Reply
#2

*BUMP*

Cmon guys! i need help! badly!
Reply
#3

Nevermind, i got the error.
it wasnt in core.inc suprisingly..
it was in my gamemode, at the top, it said

pawn Код:
df//---INCLUDES---//
#include <a_samp>
#include <dutils>
#include <xClient>
//---TABSIZE---//
#pragma tabsize 0
//---UNUSED---//
#pragma unused ret_memcpy
#pragma unused bombicon
#pragma unused Bomb
The 'df' caused all my problems
Reply
#4

I had an "f"
Ctrl wasn't pressed at the right time lol, when I pressed Ctrl+F
Thanks PowerSourge
Reply
#5

lol same happened with me...there was a f at the beginning.....BTW problem is fixed now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)