SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=155750)



Help - Zero[S] - 19.06.2010

Код:
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(2886) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15819) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15869) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15874) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15928) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15942) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26494) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26562) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26599) : warning 209: function "OnDialogResponse" should return a value
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26600) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26602) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26604) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26606) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26612) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26618) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26623) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26626) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26628) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26630) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26632) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26638) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26644) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26650) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26656) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26662) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26668) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26674) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26680) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26686) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26692) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26698) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26704) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26710) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26716) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26722) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
im make dialog login register and compile this errors :S

Its my gm
http://pastebin.com/Tb1zEVnm



Re: Help - Kar - 19.06.2010

missed a bracket }

somewhere


Re: Help - Zero[S] - 19.06.2010

where?


Re: Help - Zero[S] - 19.06.2010

im fix this error,now erros :S
Код:
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(2886) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15819) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15869) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15874) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15928) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(15942) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26494) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26562) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26598) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26621) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26702) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26708) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26851) : warning 209: function "OnDialogResponse" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase



Re: Help - Kar - 19.06.2010

#pragma tabsize 0
//at the top of ur script

uhh cant remember the other thing


Re: Help - Flashy - 19.06.2010

The lines with "loose intentation" isnґt important for your script.
But it is in fact better to fix it.

Loose intentaion means a line isnґt in the line as it is suppose. Example:


False:

Quote:

dcmd_kill2(playerid, params[])
{
new ReturnPlayer, pName[24], ReturnUserName[24], string[256];
if(PlayerInfo[playerid][AdminLevel] < 3) return false;
if(sscanf(params, "d", ReturnPlayer)) return SendClientMessage(playerid,
//blabla
return 1;
}

Right:

Quote:

dcmd_kill2(playerid, params[])
{
new ReturnPlayer, pName[24], ReturnUserName[24], string[256];
if(PlayerInfo[playerid][AdminLevel] < 3) return false;
if(sscanf(params, "d", ReturnPlayer)) return SendClientMessage(playerid,
//bla bla
return 1;
}

EDIT:

Quote:
Originally Posted by Kar
#pragma tabsize 0
//at the top of ur script

uhh cant remember the other thing
Donґt use #pragma tabsize 0 -.-


Re: Help - Kar - 19.06.2010

why not? i like it=}


Re: Help - DJDhan - 19.06.2010

You should return 0 at the end of OnPlayerDialogResponse function.
Quote:
Originally Posted by Zero[S
]
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\BFGM.pwn(26851) : warning 209: function "OnDialogResponse" should return a value