SA-MP Forums Archive
[Tutorial] Criando GangZones Dominбveis | Versгo 3.0 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [Tutorial] Criando GangZones Dominбveis | Versгo 3.0 (/showthread.php?tid=181017)

Pages: 1 2


Re: Criando GangZones Dominбveis | Versгo 3.0 - Kasura - 04.10.2010

kkkkkkkkkkkkkkk
esse forum deixa minha vida mais alegre, me cago rindo os posts de vcs kkkkkkkkkk


Re: Criando GangZones Dominбveis | Versгo 3.0 - HigorOliver - 04.10.2010

Quote:
Originally Posted by [GangstA]Kasura
View Post
kkkkkkkkkkkkkkk
esse forum deixa minha vida mais alegre, me cago rindo os posts de vcs kkkkkkkkkk
І
kkkkkkkk


Re: Criando GangZones Dominбveis | Versгo 3.0 - frenetico - 05.10.2010

warning 202: number of arguments does not match definition:
Code:
GangZoneShowForPlayer(GZCriadas[i],Azul);
error 017: undefined symbol "i":
Code:
GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))



Re: Criando GangZones Dominбveis | Versгo 3.0 - zSuYaNw - 05.10.2010

Quote:
Originally Posted by frenetico
View Post
warning 202: number of arguments does not match definition:
Code:
GangZoneShowForPlayer(GZCriadas[i],Azul);
error 017: undefined symbol "i":
Code:
GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
pawn Code:
for(new i; i < MAX_PLAYERS; i ++)
{
GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
}



Re: Criando GangZones Dominбveis | Versгo 3.0 - ipsBruno - 05.10.2010

@Garfield:
Nгo sabe valor de MAX_PLAYERS nгo?

for (new i=0; i < GZS_CRIADAS; i++)


Re: Criando GangZones Dominбveis | Versгo 3.0 - zSuYaNw - 05.10.2010

Quote:
Originally Posted by [FeK]DraKiNs
View Post
@Garfield:
Nгo sabe valor de MAX_PLAYERS nгo?

for (new i=0; i < GZS_CRIADAS; i++)
https://sampwiki.blast.hk/


Re: Criando GangZones Dominбveis | Versгo 3.0 - ipsBruno - 05.10.2010

Nгo Garfield,vocк nгo entendeu.

MAX_PLAYERS = 500
GZS_CRIADAS = 6

Ele teria que fazer 494 verificaзхes a mais por nada pois sу existem 6 Gang Zones


Re: Criando GangZones Dominбveis | Versгo 3.0 - frenetico - 05.10.2010

Quote:
Originally Posted by [FeK]DraKiNs
View Post
@Garfield:
Nгo sabe valor de MAX_PLAYERS nгo?

for (new i=0; i < GZS_CRIADAS; i++)
й pra usar o:
Code:
for (new i=0; i < GZS_CRIADAS; i++)
Caso for continua a dar os mesmos erros.


Re: Criando GangZones Dominбveis | Versгo 3.0 - Link_ - 05.10.2010

Drakon e como salva as gzs ??


Re: Criando GangZones Dominбveis | Versгo 3.0 - ipsBruno - 06.10.2010

Oras o Tutorial й como Dominar,para salvar use o Tutorial de Salvamentos de Valores Opcionais.


Respuesta: Criando GangZones Dominбveis | Versгo 3.0 - ipsBruno - 07.02.2011

new Float:CordGZs[GZS_CRIADAS][4] ={
{-2935.1496,1103.3177,-2872.9353,1215.9273},//palisades
{-2871.9938,1103.4689,-2789.8159,1211.2862},//palisades 2
{-2868.2822,1211.7617,-2749.9337,1311.3054},//palisades 3
{-2745.2011,1322.9896,-2612.5195,1457.9614}//jizzys
};


Re: Criando GangZones Dominбveis | Versгo 3.0 - Link_ - 07.02.2011

vlw drakon te emo cara


Re: Criando GangZones Dominбveis | Versгo 3.0 - lucas_mdr1235 - 09.02.2011

AJUDA

pawn Code:
D:\Servers\GTA Samp\gamemodes\EmConstruзao.pwn(163) : error 052: multi-dimensional arrays must be fully initialized
D:\Servers\GTA Samp\gamemodes\EmConstruзao.pwn(759) : warning 202: number of arguments does not match definition
D:\Servers\GTA Samp\gamemodes\EmConstruзao.pwn(1760) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
linha 163
pawn Code:
new CordGZs[GZS_CRIADAS][4] =
            {
            {2217,1901,2333,2013},
            {1875,641,1978,764},
            {-2201,-281,-2011,-80},
            {-2015,1375,-1799,1601}
>>>>     };
linha 759
pawn Code:
for (new i = 0; i <GZS_CRIADAS; i++) // Loop
    {
>>>>        GangZoneShowForPlayer(GZCriadas[i],COLOR_WHITE);
            printf("Gang Zone %s Criada com sucesso",NomesGZs[i]);
    }
linha 1760
pawn Code:
if(strcmp(cmd, "/dominar", true) == 0)
    {
        if(!IsAreaInGangCheck(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Vocк nгo estб em nenhuma Gang Zone,FAIL");
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        for (new i=0; i < GZS_CRIADAS; i++)
        if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500)
        {
            format(string, sizeof(string), "%s comeзou a dominar a gang zone %s.",name,NomesGZs[i]);
        }
        SendClientMessageToAll(0xFFFF00AA, string);
>>>>    GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
        SetTimer("Terminar",60000,false);
        return 1;
    }



Re: Criando GangZones Dominбveis | Versгo 3.0 - apollo lima - 29.12.2011

Porfavore me ajudem ja tentei mas nгo consegui resolver sou novo nisso

Code:
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(57) : error 017: undefined symbol "GZS_CRIADAS"
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : error 017: undefined symbol "GZCriadas"
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : warning 215: expression has no effect
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
linhas 57 e 59:
Code:
57>>       for (new i=0; i < GZS_CRIADAS; i++)
 {
59>>      GZCriadas[i] = GangZoneCreate(CordGZs[i][0], CordGZs[i][1], CordGZs[i][2], CordGZs[i][3]);
Topo
Code:
#include <a_samp>
#if defined FILTERSCRIPT
#define GZS_CRIADAS 8
new GZCriadas[GZS_CRIADAS];
new NomesGZs[GZS_CRIADAS][] = 8
{
"Castelo",
"Estasao",
"AeroDoDeserto",
"Motel",
"PARKE",
"Autrodomo",
"LagoPirata",
"Royale"
};
new CordGZs[GZS_CRIADAS][4] = {
{2075.157470, 989.061279, 2339.157470, 1189.061279}, // Castelo
{1250.794311, 2631.961425, 1538.794311, 2703.961425}, // Estasao
{73.848297, 2400.415039, 489.848297, 2624.415039}, // AeroDoDeserto
{2030.552490, 2113.295410, 2118.552490, 2201.295410}, // Motel
{2430.995849, 1477.328247, 2598.995849, 1613.328247}, // PARKE
{1013.292236, 1411.981079, 1205.292236, 1683.981079}, // Audrodomo
{1859.144165, 1448.397216, 2043.144165, 1704.397216}, // LagoPirata
{2073.381347, 1385.136718, 2241.381347, 1545.136718} // Royale
};
o que devo fazer??


Re: Criando GangZones Dominбveis | Versгo 3.0 - leonardoulhoa - 03.01.2012

CORRETO:
Code:
#include <a_samp>

#if defined FILTERSCRIPT
#define GZS_CRIADAS 8

new GZCriadas[GZS_CRIADAS];
new NomesGZs[GZS_CRIADAS][] = 8
{
"Castelo",
"Estasao",
"AeroDoDeserto",
"Motel",
"PARKE",
"Autrodomo",
"LagoPirata",
"Royale"
};
new CordGZs[GZS_CRIADAS][8] = { //o numero dentro da array tem que tб de acordo com os codigos abaixo!
{2075.157470, 989.061279, 2339.157470, 1189.061279}, // Castelo - X,Y,X,Y
{1250.794311, 2631.961425, 1538.794311, 2703.961425}, // Estasao - X,Y,X,Y
{73.848297, 2400.415039, 489.848297, 2624.415039}, // AeroDoDeserto- X,Y,X,Y
{2030.552490, 2113.295410, 2118.552490, 2201.295410}, // Motel- X,Y,X,Y
{2430.995849, 1477.328247, 2598.995849, 1613.328247}, // PARKE- X,Y,X,Y
{1013.292236, 1411.981079, 1205.292236, 1683.981079}, // Audrodomo- X,Y,X,Y
{1859.144165, 1448.397216, 2043.144165, 1704.397216}, // LagoPirata- X,Y,X,Y
{2073.381347, 1385.136718, 2241.381347, 1545.136718} // Royale- X,Y,X,Y
};
vocк tem que colocar somente 4 numero
CORDENADA X,CORDENADA Y,CORDENADA X,CORDENADA Y


Re: Criando GangZones Dominбveis | Versгo 3.0 - Gabriel10101 - 23.07.2012

Pessoal sei que o tуpico й antigo,mas estou usando ele para criar uma GZ '-'
Deu alguns erros:
pawn Code:
warning: 219: local variable "string" shadows a variable at a preceding level
error: 017: undefined symbol "i"
Linhas:
pawn Code:
if(!strcmp(cmdtext, "/trdo", true))
{
    if(!IsAreaInGangCheck(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Vocк nгo estб na Mata");
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
>> new name[MAX_PLAYER_NAME], string[44];
    GetPlayerName(playerid, name, sizeof(name));
    for (new i=0; i < GZS_CRIADAS; i++)
    if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500) {
    format(string, sizeof(string), "%s comeзou a dominar a %s.",name,NomesGZs[i]);
    }
    SendClientMessageToAll(0xFFFF00AA, string);
>>GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
    SetTimer("Terminar",60000,false);
    return 1;
}



Re: Criando GangZones Dominбveis | Versгo 3.0 - DouglasRodrigues - 23.07.2012



03/10/2010, 03:22 PM

@Edit

Quote:
Originally Posted by Gabriel10101
View Post
Pessoal sei que o tуpico й antigo,mas estou usando ele para criar uma GZ '-'
Deu alguns erros:
pawn Code:
warning: 219: local variable "string" shadows a variable at a preceding level
error: 017: undefined symbol "i"
Mesmo assim:
Ja tem uma new string global.
Crie uma new pra "i"


Re: Criando GangZones Dominбveis | Versгo 3.0 - Bruno Alves - 08.09.2012

Fiz de tudo aqui mas nгo funfou, vc deve ter testado... funcionou Bruno?
Por que aqui nops funfs