SA-MP Forums Archive
putting filter script into gm - 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: putting filter script into gm (/showthread.php?tid=133560)



putting filter script into gm - 02manchestera - 12.03.2010

Код:
public OnPlayerSpawn(playerid) return mine[playerid][0] = 5,1;
This is the line im tring to put in but i know it isnt write even thu it works in the filterscript any idea how it should be formated for a GM


error if they even help
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\pawno\include\foreach.inc(346) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
C:\Program Files\Rockstar Games\GTA San Andreas\my server\pawno\include\foreach.inc(436) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect")
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2334) : error 055: start of function body without function header
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2345) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2347) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2356) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2361) : error 021: symbol already defined: "TogglePlayerControllable"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2363) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2366) : error 021: symbol already defined: "SetPlayerRankStars"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2368) : error 021: symbol already defined: "SetPlayerInterior"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2370) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2374) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2376) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2377) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2378) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2379) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2380) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2381) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2382) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2383) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2384) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2385) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2388) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2390) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2391) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2392) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2393) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(2394) : error 010: invalid function or declaration

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


26 Errors.



Re: putting filter script into gm - aircombat - 12.03.2010

u didnt put it right


Re: putting filter script into gm - lighteen - 05.05.2012

from what i saw in some warnings and errors you have copy/paste exactly the filterscript, not from OnFilterScriptInit to OnGameModeInit... You must select them!


Re: putting filter script into gm - SuperViper - 05.05.2012

Instead of pasting the whole functions, you need to add in the code inside of the filterscript's functions (unless it's a custom function) and paste it into the same function in your script.