[AJUDA] Gangzones dominбveis
#1

Segui o tutorial do Drakins, como ele foi banido nгo sei por que e ninguйm vai no tуpico ajudar, vim pedir ajuda aqui.

Код:
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(104) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(104) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(104) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(104) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(105) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(105) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(105) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(105) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(106) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(106) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(106) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(106) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(107) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(107) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(107) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(107) : warning 213: tag mismatch
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(1293) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(1448) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Linhas:

pawn Код:
/*103*/ new CordGZs[GZS_CRIADAS][4] = {
/*104*/ {1356.766, -2396.403, 1596.345, -2195.068}, // Aero
/*105*/ {1493.668, -1160.76, 1847.332, -912.0523}, // Estacionamento
/*106*/ {337.6059, -1839.771, 520.142, -1666.071}, // Bar
/*107*/ {1828.318, -1287.088, 2094.516, -1113.3871} // Parque
/*108*/ };
Final do onplayerspawn:

pawn Код:
for (new i = 0; i <GZS_CRIADAS; i++) // Loop
{
/*1293*/     GangZoneShowForPlayer(GZCriadas[i],0xFFFFFFFF);
     printf("Gang Zone %s criada com sucesso!",NomesGZs[i]);
}
    return 1;
}
Agora o undefined symbol "i":

pawn Код:
if(!strcmp(cmdtext, "/dominar", true))
{
    if(!IsAreaInGangCheck(playerid)) SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб em nenhuma Gang Zone!");
    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), "Informaзгo: %s comeзou a dominar a Gang Zone %s!",name,NomesGZs[i]);
    }
    SendClientMessageToAll(0xFFFF00AA, string);
/*1447*/    GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
    SetTimer("Terminar",60000,false);
    return 1;
}
Ajuda aк, tф quase morrendo pra essas benditas.
Reply
#2

pawn Код:
if(!strcmp(cmdtext, "/dominar", true))
{
    if(!IsAreaInGangCheck(playerid)) SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб em nenhuma Gang Zone!");
    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), "Informaзгo: %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;
}
Reply
#3

Vocк Esqueceu de Abrir a Chave da Loop.

Код:
for (new i=0; i < GZS_CRIADAS; i++) 
{
й no Final " } "
Reply
#4

Nгo resolveu em nada. Mesmos erros.
Reply
#5

pawn Код:
new Float:CordGZs[GZS_CRIADAS][4] [4] = {
{1356.766, -2396.403, 1596.345, -2195.068}, // Aero
{1493.668, -1160.76, 1847.332, -912.0523}, // Estacionamento
{337.6059, -1839.771, 520.142, -1666.071}, // Bar
{1828.318, -1287.088, 2094.516, -1113.3871} // Parque
};
pawn Код:
for (new i = 0; i <GZS_CRIADAS; i++) // Loop
{
     GangZoneShowForPlayer(playerid, GZCriadas[i], 0xFFFFFFFF);
     printf("Gang Zone %s criada com sucesso!",NomesGZs[i]);
}
    return 1;
}
pawn Код:
if(!strcmp(cmdtext, "/dominar", true))
{
    if(!IsAreaInGangCheck(playerid)) SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб em nenhuma Gang Zone!");
    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), "Informaзгo: %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;
}
teste...
Reply
#6

Rsrs, Coloque a tag float na variбvel CordGZs.

resolvido.

pawn Код:
new Float:CordGZs[GZS_CRIADAS][4] =
{
{1356.766, -2396.403, 1596.345, -2195.068}, // Aero
{1493.668, -1160.76, 1847.332, -912.0523}, // Estacionamento
{337.6059, -1839.771, 520.142, -1666.071}, // Bar
{1828.318, -1287.088, 2094.516, -1113.3871} // Parque
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)