2 Error In Script [+REP]
#1

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
Reply
#2

You should make a include with this script, like a_samp.inc.
Reply
#3

Make Include where?
Reply
#4

Quote:
Originally Posted by VIPAwesome
Посмотреть сообщение
Make Include where?
http://www.mediafire.com/?i3c165kycrlj83e

Compiled your script and made an include of it!
Reply
#5

this:
pawn Код:
if defined _multicmd_included
should be this:
pawn Код:
#if defined _multicmd_included
Reply
#6

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 -
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)