[DUV]CreateGang
#1

olб amigos tenhu aki uma divida eu tou a criar uma gangzone de policia.

Ta aqui

Quote:

//At The Top Of The Script:
new POLICIA-LS;

//Under OnGameModeInit
POLICIA-LS = GangZoneCreate(1495.978393, -1738.364501, 1679.978393, -1578.364501);

//Under OnPlayerSpawn:
GangZoneShowForPlayer(playerid, POLICIA-LS, 65477);

ja meti no OnGameModeInit:
Quote:

POLICIA-LS = GangZoneCreate(1495.978393, -1738.364501, 1679.978393, -1578.364501);

e ja meti no OnPlayerSpawn:

Quote:

GangZoneShowForPlayer(playerid, POLICIA-LS, 65477);

mas nao sei onde meto isto:

Quote:

new POLICIA-LS;

Reply
#2

Topo do GameMode... Ex: Abaixo dos #include
Reply
#3

obrigado
Reply
#4

UPS da erro dis me onde tenho de meter vou meter o topo do game mode e metes o New POLICIA-LS; ok ? agradessote =)


Quote:

/****************************************
** **
** GTA Roleplay **
** Feito por Ricardo_Jorge **
** **
****************************************/


#define SCRIPT_VERSION "v1.5"

#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
static gTeam[MAX_PLAYERS];

#define MAX_STRING 255
#define CHECKPOINT_NONE 0
#define COLOR_ASKQ 0xFF0000FF
#define CHECKPOINT_HOME 12
#define CHECKPOINT_3 13
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x9EC73DAA
#define COLOR_GROVE 0x00FF00FF
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xDABB3EAA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0x458E1DAA
#define COLOR_OOC 0x33AA33AA
#define TEAM_CYAN 1
#define TEAM_BLUE 2
#define TEAM_GREEN 3
#define TEAM_ORANGE 4
#define TEAM_COR 5
#define TEAM_BAR 6
#define TEAM_TAT 7
#define TEAM_CUN 8
#define TEAM_STR 9
#define TEAM_HIT 10
#define TEAM_ADMIN 11
#define OBJECTIVE_COLOR 0x64000064
#define TEAM_GREEN_COLOR 0xFFFFFFAA
#define TEAM_JOB_COLOR 0xFFB6C1AA
#define TEAM_HIT_COLOR 0xFFFFFF00
#define TEAM_BLUE_COLOR 0x8D8DFF00
#define TEAM_RADIO_COLOR 0xF2D068FF
#define COLOR_ADD 0x63FF60AA
#define TEAM_GROVE_COLOR 0x00D900C8
#define TEAM_VAGOS_COLOR 0xFFC801C8
#define TEAM_BALLAS_COLOR 0xD900D3C8
#define TEAM_AZTECAS_COLOR 0x01FCFFC8
#define TEAM_CYAN_COLOR 0xFF8282AA
#define TEAM_ORANGE_COLOR 0xFF830000
#define TEAM_COR_COLOR 0x39393900
#define TEAM_BAR_COLOR 0x00D90000
#define TEAM_TAT_COLOR 0xBDCB9200
#define TEAM_CUN_COLOR 0xD900D300
#define TEAM_STR_COLOR 0x01FCFF00
#define TEAM_ADMIN_COLOR 0x00808000
#define COLOR_INVIS 0xAFAFAF00
#define COLOR_SPEC 0xBFC0C200
#pragma tabsize 0
#define COLOR_BLUE 0x2641FEAA
#define COLOR_DARKNICERED 0x9D000096
#define COLOR_LIGHT_BLUE 0x9FB1EEAA
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

Reply
#5

Pode ser ali mesmo... Embaixo daquilo tudo
Reply
#6

dis isto


Quote:

C:\Users\Ricardo Moreira.RicardoMorei-PC\Desktop\server\gamemodes\RPGTUGA.pwn(9 : error 001: expected token: ";", but found "-"
C:\Users\Ricardo Moreira.RicardoMorei-PC\Desktop\server\gamemodes\RPGTUGA.pwn(44451) : warning 203: symbol is never used: "POLICIA"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#7

Quote:
Originally Posted by RicardoMoreira
dis isto


Quote:

C:\Users\Ricardo Moreira.RicardoMorei-PC\Desktop\server\gamemodes\RPGTUGA.pwn(9 : error 001: expected token: ";", but found "-"
C:\Users\Ricardo Moreira.RicardoMorei-PC\Desktop\server\gamemodes\RPGTUGA.pwn(44451) : warning 203: symbol is never used: "POLICIA"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Tira o - do POLICIA-LS fica so POLICIA ou POLICIALS
Reply
#8

Obrigado, desculpa tar sempre a pedir ajuda, ja me chamaram filho da **** por tar sempre a pedir ajuda, desculpa
Reply
#9

Vocк Deve Botar um ";" no final da Linha Numero 98
Reply
#10

Quote:
Originally Posted by Guilherme_Canani
Quote:
Originally Posted by RicardoMoreira
dis isto


Quote:

C:\Users\Ricardo Moreira.RicardoMorei-PC\Desktop\server\gamemodes\RPGTUGA.pwn(9 : error 001: expected token: ";", but found "-"
C:\Users\Ricardo Moreira.RicardoMorei-PC\Desktop\server\gamemodes\RPGTUGA.pwn(44451) : warning 203: symbol is never used: "POLICIA"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Tira o - do POLICIA-LS fica so POLICIA ou POLICIALS
eu axo melhor POLICIA pq voзe defeniu Policia e nao PoliciaLS

so uma opiniao

e se vc pensase um bucadinho

warning 203: symbol is never used: "POLICIA"

significa que voce nao defeniu portanto tem que dar um new

error 001: expected token: ";", but found "-"

й pq falta uma virgula
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)