error 025: function heading - 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: error 025: function heading (
/showthread.php?tid=369491)
error 025: function heading -
David_Kaka - 17.08.2012
Код:
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
Re: error 025: function heading -
Dan. - 17.08.2012
Post the lines near line 289.
Re: error 025: function heading -
kbalor - 17.08.2012
Show error lines...
Re: error 025: function heading -
avivelkayam - 17.08.2012
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
Re: error 025: function heading -
RanSEE - 17.08.2012
Lol. Dan, meant post the line 298th line from your gamemode.
Only then we can be of any help.
Re: error 025: function heading -
David_Kaka - 17.08.2012
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
Re: error 025: function heading -
RanSEE - 17.08.2012
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