problem with creating gang zones - 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: problem with creating gang zones (
/showthread.php?tid=256527)
problem with creating gang zones -
Kobatz - 21.05.2011
I've created(tried) Military zone..
http://pastebin.com/Z1Hyehm3
But i got a problem,4 errosand few warnings,please check if u could help me,thanks.
Those are the errors & warnings.
Code:
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(40) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(40) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(40) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(40) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(40) : warning 215: expression has no effect
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(48) : warning 225: unreachable code
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(48) : warning 217: loose indentation
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(48) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(48 -- 51) : warning 215: expression has no effect
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(51) : error 001: expected token: ";", but found "public"
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(51) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(51) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: problem with creating gang zones -
Prumpuz - 21.05.2011
Try changing:
pawn Code:
GangZoneCreate(2615,844,-2569,133, 2849,402, -2277,186);
to:
pawn Code:
GangZoneCreate(2615.844, -2569.133, 2849.402, -2277.186);
And:
pawn Code:
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, military, 0x80800096);
to:
pawn Code:
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, military, 0x80800096);
return 1;
}
Re: problem with creating gang zones -
Kobatz - 21.05.2011
That helped a bit,but i still got two errors.
Code:
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(40) : warning 215: expression has no effect
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(52) : warning 225: unreachable code
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(52) : warning 217: loose indentation
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(52) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(52 -- 54) : warning 215: expression has no effect
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\filterscripts\GangZones.pwn(54) : error 001: expected token: ";", but found "-end of file-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: problem with creating gang zones -
Kobatz - 22.05.2011
Bump! Bump! Bump!
Re: problem with creating gang zones -
xir - 22.05.2011
pawn Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#define COLOR_BROWN 0x80800096
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
//Gang Zones
new military;
public OnGameModeInit()
{
military = GangZoneCreate(2615.844, -2569.133, 2849.402, -2277.186);
return 1;
}
public OnGameModeExit()
{
GangZoneDestroy(military);
return 1;
}
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, military, 0x80800096);
return 1;
}
Re: problem with creating gang zones -
Kobatz - 22.05.2011
Thanks
It's working!