2 Error In Script [+REP] - 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)
+--- Thread: 2 Error In Script [+REP] (
/showthread.php?tid=323920)
2 Error In Script [+REP] -
VIPAwesome - 07.03.2012
pawn Код:
if defined _multicmd_included
#endinput
#endif
#define _multicmd_included
#include <a_samp>
new
iStartMCMD = -1,
iCommandMCMD[128]
;
/*
native MultiCommand(playerid, Commands[]);
*/
stock MultiCommand( playerid, Commands[] )
{
iStartMCMD = -1;
iCommandMCMD[0] = EOS;
for ( new iPos, iLen = strlen(Commands); iPos <= iLen; iPos++ )
{
if ( Commands[iPos] == '/' || iPos == iLen )
{
switch(iStartMCMD)
{
case -1: iStartMCMD = iPos;
default:
{
strmid(iCommandMCMD, Commands, iStartMCMD, iPos);
CallLocalFunction( "OnPlayerCommandText", "is", playerid, iCommandMCMD);
iStartMCMD = iPos;
}
}
}
}
return true;
}
Error
pawn Код:
F:\My favorite sa-mp script\filterscripts\Multi.pwn(1) : error 010: invalid function or declaration
F:\My favorite sa-mp script\filterscripts\Multi.pwn(2) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Please Help Me
Re: 2 Error In Script [+REP] -
IstuntmanI - 07.03.2012
You should make a include with this script, like a_samp.inc.
Re: 2 Error In Script [+REP] -
VIPAwesome - 07.03.2012
Make Include where?
Re: 2 Error In Script [+REP] -
Ballu Miaa - 07.03.2012
Quote:
Originally Posted by VIPAwesome
Make Include where?
|
http://www.mediafire.com/?i3c165kycrlj83e
Compiled your script and made an include of it!
Re: 2 Error In Script [+REP] -
Shabi RoxX - 07.03.2012
this:
pawn Код:
if defined _multicmd_included
should be this:
pawn Код:
#if defined _multicmd_included
Re: 2 Error In Script [+REP] -
Ballu Miaa - 07.03.2012
Quote:
Originally Posted by Shabi RoxX
this:
pawn Код:
if defined _multicmd_included
should be this:
pawn Код:
#if defined _multicmd_included
|
Quote:
Originally Posted by Shabi RoxX
this:
pawn Код:
if defined _multicmd_included
should be this:
pawn Код:
#if defined _multicmd_included
|
Exactly
So compiled one more include for you with these codes on the top.
-CLICK HERE TO DOWNLOAD -