Gang zone Script help
#1

Hi all, i have a problem whit create gang zone:

i just follow this tool: https://sampforum.blast.hk/showthread.php?tid=279647


and i create my filterscript whit some errors and warns: http://pastebin.com/5Q6mZaya

please help me whit this big problem
Reply
#2

any errors? You just post code
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
It looks like you are using local variables, but you didn't say what the errors are so I can't be sure. If that's the case, then the issue is that "OnPlayerConnect" can't see the "GZ_ZONE_1" variable and others, because they are contained within a different function.
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(2) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(4) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(5) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(6) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(7) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn( : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(9) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(10) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(11) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(17) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(20) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(23) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(26) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(29) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(32) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(35) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(3 : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE1"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE2"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE3"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE4"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE5"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE6"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE7"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE8"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


16 Errors.
Reply
#4

on top of ur script
pawn Код:
#include <a_samp>
Reply
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
It looks like you are using local variables, but you didn't say what the errors are so I can't be sure. If that's the case, then the issue is that "OnPlayerConnect" can't see the "GZ_ZONE_1" variable and others, because they are contained within a different function.
Quote:
Originally Posted by KaiserOfGermany
Посмотреть сообщение
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(2) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(4) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(5) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(6) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(7) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn( : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(9) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(10) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(11) : error 017: undefined symbol "GangZoneShowForPlayer"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(17) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(20) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(23) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(26) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(29) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(32) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(35) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(3 : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE1"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE2"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE3"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE4"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE5"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE6"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE7"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : warning 203: symbol is never used: "GZ_ZONE8"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


16 Errors.
Quote:
Originally Posted by ******
Посмотреть сообщение
Right, you haven't included a_samp.
As ****** said you haven't included a_samp so how to include do like this:
At the top of script
pawn Код:
#include <a_samp>
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
It looks like you are using local variables, but you didn't say what the errors are so I can't be sure. If that's the case, then the issue is that "OnPlayerConnect" can't see the "GZ_ZONE_1" variable and others, because they are contained within a different function.
yes i added:

#include <a_samp>

public OnPlayerConnect( playerid )
{
GangZoneShowForPlayer(playerid, GZ_ZONE1);
GangZoneShowForPlayer(playerid, GZ_ZONE2);
GangZoneShowForPlayer(playerid, GZ_ZONE3);
GangZoneShowForPlayer(playerid, GZ_ZONE4);
GangZoneShowForPlayer(playerid, GZ_ZONE5);
GangZoneShowForPlayer(playerid, GZ_ZONE6);
GangZoneShowForPlayer(playerid, GZ_ZONE7);
GangZoneShowForPlayer(playerid, GZ_ZONE;
return 1;
}


new GZ_ZONE1;
GZ_ZONE1 = GangZoneCreate(2217,1875,-1739,0625,2545,3125,-1624,21875);
GangZoneShowForAll(GZ_ZONE1, 0x00800096);
new GZ_ZONE2;
GZ_ZONE2 = GangZoneCreate(2196,09375,-1729,6875,2554,6875,-1619,53125);
GangZoneShowForAll(GZ_ZONE2, 0x00800096);
new GZ_ZONE3;
GZ_ZONE3 = GangZoneCreate(2001,5625,-1748,4375,2167,96875,-1610,15625);
GangZoneShowForAll(GZ_ZONE3, 0xFF00FF96);
new GZ_ZONE4;
GZ_ZONE4 = GangZoneCreate(1846,875,-1265,625,2069,53125,-1139,0625);
GangZoneShowForAll(GZ_ZONE4, 0xFFFF0096);
new GZ_ZONE5;
GZ_ZONE5 = GangZoneCreate(1830,46875,-2121,09375,1954,6875,-1900,78125);
GangZoneShowForAll(GZ_ZONE5, 0x00FFFF96);
new GZ_ZONE6;
GZ_ZONE6 = GangZoneCreate(1082,8125,-2085,9375,1317,1875,-1989,84375);
GangZoneShowForAll(GZ_ZONE6, 0xC0C0C096);
new GZ_ZONE7;
GZ_ZONE7 = GangZoneCreate(2369,53125,-1258,59375,2636,71875,-1157,8125);
GangZoneShowForAll(GZ_ZONE7, 0xFF000096);
new GZ_ZONE8;
GZ_ZONE8 = GangZoneCreate(2728,125,-1671,09375,2894,53125,-1488,28125);
GangZoneShowForAll(GZ_ZONE8, 0xE7DC1896);






But compears the same problems:


C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(6) : error 017: undefined symbol "GZ_ZONE1"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(7) : error 017: undefined symbol "GZ_ZONE2"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn( : error 017: undefined symbol "GZ_ZONE3"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(9) : error 017: undefined symbol "GZ_ZONE4"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(10) : error 017: undefined symbol "GZ_ZONE5"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(11) : error 017: undefined symbol "GZ_ZONE6"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(12) : error 017: undefined symbol "GZ_ZONE7"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(13) : error 017: undefined symbol "GZ_ZONE8"
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(19) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(22) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(25) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(2 : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(31) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(34) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(37) : error 010: invalid function or declaration
C:\Users\User\Desktop\SAMP V10 ONLINE CDO v15.0\filterscripts\gangzones.pwn(40) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


16 Errors.
Reply
#7

Deleted
Reply
#8

Quote:
Originally Posted by ******
Посмотреть сообщение
Those are not the same issues - read the messages. The problem is that you declare the variables AFTER you first use them, so when you use them in "OnPlayerConnect" they don't actually exist yet.
so what i can do?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)