problem with creating gang zones
#1

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.
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

Bump! Bump! Bump!
Reply
#5

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;
}
Reply
#6

Thanks It's working!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)