SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 21/05/2011, 11:41 AM   #1
Kobatz
Little Clucker
 
Join Date: May 2011
Location: Serbia
Posts: 28
Reputation: 0
Default problem with creating gang zones

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 (c) 1997-2006, ITB CompuPhase


4 Errors.
Kobatz is offline  
Old 21/05/2011, 12:11 PM   #2
Prumpuz
Big Clucker
 
Join Date: Apr 2008
Location: Iceland
Posts: 149
Reputation: 12
Default Re: problem with creating gang zones

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;
}
Prumpuz is offline  
Old 21/05/2011, 01:01 PM   #3
Kobatz
Little Clucker
 
Join Date: May 2011
Location: Serbia
Posts: 28
Reputation: 0
Default Re: problem with creating gang zones

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 (c) 1997-2006, ITB CompuPhase


2 Errors.
Kobatz is offline  
Old 22/05/2011, 09:48 AM   #4
Kobatz
Little Clucker
 
Join Date: May 2011
Location: Serbia
Posts: 28
Reputation: 0
Default Re: problem with creating gang zones

Bump! Bump! Bump!
Kobatz is offline  
Old 22/05/2011, 10:10 AM   #5
xir
Gangsta
 
Join Date: Aug 2010
Posts: 746
Reputation: 3
Default Re: problem with creating gang zones

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;
}
xir is offline  
Old 22/05/2011, 11:51 AM   #6
Kobatz
Little Clucker
 
Join Date: May 2011
Location: Serbia
Posts: 28
Reputation: 0
Default Re: problem with creating gang zones

Thanks It's working!
Kobatz is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gang Zones BLAbla93 Help Archive 2 21/04/2010 02:49 AM
Gang Zones V1ceC1ty Help Archive 5 23/09/2009 08:59 AM
A little problem with gang zones (only create gang zones) CTCCoco Help Archive 4 20/02/2009 10:59 AM


All times are GMT. The time now is 09:14 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.