Weird errors, Most probably linked to the first one - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weird errors, Most probably linked to the first one (
/showthread.php?tid=122910)
Weird errors, Most probably linked to the first one -
Torran - 23.01.2010
Code:
C:\Users\Torran\Desktop\sa-mp\filterscripts\engine.pwn(246) : error 017: undefined symbol "dcmd_exit"
C:\Users\Torran\Desktop\sa-mp\filterscripts\engine.pwn(281) : warning 217: loose indentation
C:\Users\Torran\Desktop\sa-mp\filterscripts\engine.pwn(281) : error 017: undefined symbol "dcmd_exit"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
The loose indentation error is really weird,
As the pawn code is:
pawn Code:
dcmd_exit(playerid, params[])
So i cant fix that,
Plus the undefined symbol, But it isent
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(exit, 4, cmdtext);
dcmd(engine, 6, cmdtext);
return 0;
}
Anyone have any idea?
Re: Weird errors, Most probably linked to the first one -
JustinSton - 23.01.2010
Top script
#pragma tabsize 0
Re: Weird errors, Most probably linked to the first one -
Butilka - 23.01.2010
Do you have
Code:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
in your script?
Re: Weird errors, Most probably linked to the first one -
Torran - 23.01.2010
Quote:
Originally Posted by E1edge
Do you have
Code:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
in your script?
|
Yes
Quote:
Originally Posted by JustinSton
Top script
#pragma tabsize 0
|
Leaves me with 1st And 3rd Error
Re: Weird errors, Most probably linked to the first one -
llama - 24.01.2010
pawn Code:
dcmd_exit(playerid, params[])
{
//code here
}
What is on lines 246 and 281?