error 025: function heading
#1

Код:
C:\Documents and Settings\DK\щемзп дтбегд\samp03e_svr_R2_win32\filterscripts\ATM.pwn(274) : warning 217: loose indentation
C:\Documents and Settings\DK\щемзп дтбегд\samp03e_svr_R2_win32\filterscripts\ATM.pwn(289) : error 025: function heading differs from prototype
C:\Documents and Settings\DK\щемзп дтбегд\samp03e_svr_R2_win32\filterscripts\ATM.pwn(433) : warning 217: loose indentation
C:\Documents and Settings\DK\щемзп дтбегд\samp03e_svr_R2_win32\filterscripts\ATM.pwn(481) : warning 217: loose indentation
C:\Documents and Settings\DK\щемзп дтбегд\samp03e_svr_R2_win32\filterscripts\ATM.pwn(482) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
C:\Documents and Settings\DK\щемзп дтбегд\samp03e_svr_R2_win32\filterscripts\ATM.pwn( 289) : error 025: function heading
Reply
#2

Post the lines near line 289.
Reply
#3

Show error lines...
Reply
#4

the warning loose indentetion tells you that your code is not with good tabs
example:
Код:
if(!strcmp(cmdtext, "/bla",true))
{
        SendClientMessage(playerid, 0xff0000ff, "asdsad");
return 1;
}
you will get this warning but if you do like this:

Код:
if(!strcmp(cmdtext, "/bla",true))
{
        SendClientMessage(playerid, 0xff0000ff, "asdsad");
        return 1;
}
you will not get the warning
if you still want to do without tabs and dont get the warning you can do:

#pargma tabsize 0

hope i help you

and please show the line 289 and 2 lines up and 2 lines down
Reply
#5

Lol. Dan, meant post the line 298th line from your gamemode.
Only then we can be of any help.
Reply
#6

Quote:
Originally Posted by Dan.
Посмотреть сообщение
Post the lines near line 289.
Код:
        public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
        new
            id = PlayerBank[playerid][pEditingID];

        if(id != -1) {
                switch (response) {)
Its lines 289-295
Reply
#7

Using a forward function for example:

Smack(id1, id2)

and in your script you write:

Smack(pSmacker, pSmacked)

that will cause that error.

https://sampwiki.blast.hk/wiki/OnPlayerSelectObject
https://sampwiki.blast.hk/wiki/OnPlayerEditObject
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)