[Ajuda] um mini erro
#1

erro pequeno porem chato ¬¬' ajuda ae ?

pawn Код:
\filterscripts\FS1.pwn(1610) : warning 219: local variable "string" shadows a variable at a preceding level
\filterscripts\FS1.pwn(1618) : error 017: undefined symbol "i"
\filterscripts\FS1.pwn(5359) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
linha

pawn Код:
if(!strcmp(cmdtext, "/dominar", true))
{
    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], string[44]; // 1610
    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)) // 1618
        SetTimer("Terminar",60000,false);
    return 1;
}
eu tentei fazer as gzone dominavel do tutorial do ipsbruno, link > https://sampforum.blast.hk/showthread.php?tid=181017
Reply
#2

certifique-se de que vocк adcionou todas as includes corretamente...
Reply
#3

Tente aumentar um pouco a string.
Reply
#4

Quote:
Originally Posted by dPlaYer_
Посмотреть сообщение
Tente aumentar um pouco a string.
isso jб esta arrumado agora sу falta o erro do "i"

pawn Код:
error 017: undefined symbol "i"
Reply
#5

pawn Код:
GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid)) // 1618


Esta fora do loop.
Reply
#6

Tente assim
PHP код:
    if(!strcmp(cmdtext"/dominar"true))
    {
        if(!
IsAreaInGangCheck(playerid)) SendClientMessage(playerid0xFFFFFFFF"SERVER: Vocк nгo estб em nenhuma Gang Zone,FAIL");
        new 
Float:xFloat:yFloat:z;
        
GetPlayerPos(playeridxyz);
        new 
name[MAX_PLAYER_NAME], string[80]; // Aumente o valor 
        
GetPlayerName(playeridnamesizeof(name));
        new 
i=0;
            for (; 
GZS_CRIADASi++)
            if (
CordGZs[i][0] && CordGZs[i][1] && CordGZs[i][2] && CordGZs[i][3]&& 500) {
            
format(stringsizeof(string), "%s comeзou a dominar a gang zone %s.",name,NomesGZs[i]);
        }
        
SendClientMessageToAll(0xFFFF00AAstring);
        
GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid));// falta um ;
         
SetTimer("Terminar",60000,false);
        return 
1;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)