[AJUDA]Incendio
#1

Boas eu tou a incurpurar o fs incendio do shadovv5 para meu gm e tame a dar alguns erros, eu tou so a tirar do fs o que eu quero mas da e erros e vvarings :S algem me ajuda? veja tudo que meti


PHP код:
//TOPO GM
#define HOLDING(%0) \
    
((newkeys & (%0)) == (%0))
#define RELEASED(%0) \
    
(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define ICON 42
#define ENTRAR 942
#define SAIR 943
#define AJUDA 944
#define BRANCO 0xFFFFFFFF
#define CINZA 0xD6D6D6FF
#define VERMELHO 0xFF0000FF
#define AMARELO 0xF7E200FF
#define LARANJA 0xE89200FF
#define TEXT3D //CASO QUEIRA QUE NA CABEЗA DO BOMBEIRO TENHA DIZENDO QUE ELE Й BOMBEIRO DEIXE ESTE #define, CASO NГO, RETIRE-O
#define TEMPO 35 //TROQUE PELO TEMPO ENTRE UM INCENDIO E OUTRO (EM SEGUNDOS !)
#define APAGAR 30 //TROQUE PELO TEMPO QUE OS BOMBEIROS TКM PARA APAGAR O INCENDIO (EM SEGUNDOS !)
new Float:Fogo[][3] = {
{
1916.9470, -1400.908213.5703}, //TROQUE PELAS COORDENADAS QUE O FOGO PODE ESTAR
{2330.6628, -1805.527013.5469},  //TROQUE PELAS COORDENADAS QUE O FOGO PODE ESTAR
{2382.5210, -1131.247930.2030},
{
2164.3052, -1004.478062.7962},
{
1282.3912, -817.939584.1406},
{
811.7228, -1098.165325.9063},
{
649.1138, -1705.134514.5158},
{
153.8757, -1941.52433.7734},
{
132.7246, -1516.675510.4878},
{
262.1424, -1171.095179.4105}
};
new 
Cores[] = {
0xE02A2AFF,
0x3CE02AFF,
0xED8E12FF,
0xED12BAFF,
0x4912EDFF,
0x12EDAFFF
};
new 
Timer;
new 
Tick;
new 
Text3D:Saida;
new 
bool:F;
new 
bool:Chegou[MAX_PLAYERS];
new 
bool:Servico[MAX_PLAYERS];
new 
bool:Bombeiro[MAX_PLAYERS];
new 
Apagando[MAX_PLAYERS];
new 
Float:LugarFogo[3];
new 
pickups[5];
new 
Carros[3];
new 
Fire[7];
#if defined TEXT3D
new Text3D:texto[MAX_PLAYERS];
#endif
new Float:Fogo[][3] = {
{
1916.9470, -1400.908213.5703}, //TROQUE PELAS COORDENADAS QUE O FOGO PODE ESTAR
{2330.6628, -1805.527013.5469},  //TROQUE PELAS COORDENADAS QUE O FOGO PODE ESTAR
{2382.5210, -1131.247930.2030},
{
2164.3052, -1004.478062.7962},
{
1282.3912, -817.939584.1406},
{
811.7228, -1098.165325.9063},
{
649.1138, -1705.134514.5158},
{
153.8757, -1941.52433.7734},
{
132.7246, -1516.675510.4878},
{
262.1424, -1171.095179.4105}
};
new 
Cores[] = {
0xE02A2AFF,
0x3CE02AFF,
0xED8E12FF,
0xED12BAFF,
0x4912EDFF,
0x12EDAFFF
};
forward Apagar();
forward Check(playerid);
forward Fogoo();
//OnPlayerCommandText
    
if(strcmp(cmd"/servico"true) == || strcmp(cmd"/serviзo"true) == 0)
    {
        if(
PlayerInfo[playerid][pJob] < 21)
        if(
Servico[playerid] == false)
        {
            
Servico[playerid] = true;
            
SendClientMessage(playeridAMARELO"Vocк entrou em serviзo.");
            
SetPVarInt(playerid"Skin"GetPlayerSkin(playerid));
            new 
skin[3] = { 277278279 };
            
SetPlayerSkin(playeridskin[random(sizeof(skin))]);
            
#if defined TEXT3D
            
Delete3DTextLabel(texto[playerid]);
            
texto[playerid] = Create3DTextLabel("» Bombeiro: EM SERVIЗO «",0xFF2600FF,10.0,40.0,10.0,20.0,0);
               
Attach3DTextLabelToPlayer(texto[playerid], playerid0.00.00.4);
               
#endif
        
}
        else
        {
            
Servico[playerid] = false;
            
SendClientMessage(playeridAMARELO"Vocк saiu do serviзo.");
            
SetPlayerSkin(playeridGetPVarInt(playerid"Skin"));
            
DisablePlayerCheckpoint(playerid);
            
#if defined TEXT3D
            
Delete3DTextLabel(texto[playerid]);
            
#endif
        
}
        return 
1;
    }
    if(
strcmp(cmd"/desativar"true) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] < 1)
        for(new 
0sizeof(Fire); ++)
        {
            
DestroyObject(Fire[f]);
            
DestroyObject(Fire[f]);
        }
        for(new 
0MAX_PLAYERS++)
        {
            
Servico[i] = false;
            
Apagando[i] = 0;
            
Chegou[i] = false;
            
DisablePlayerCheckpoint(i);
            
KillTimer(Timer);
        }
        
SendClientMessage(playeridAMARELO"O sistema de incendio foi desativado temporariamente ! Para reativб-lo digite /ativar.");
        return 
1;
    }
    if(
strcmp(cmd"/ativar"true) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] < 1)
        
SendClientMessage(playeridAMARELO"O sistema de incendio foi ativado novamente. Para desativб-lo digite /desativar.");
        return 
1;
    }
    if(
strcmp(cmd"/fogo"true) == 0)
    {
        if(
Bombeiro[playerid] == false) return SendClientMessage(playeridVERMELHO"Vocк nгo й bombeiro.");
        if(
== false) return SendClientMessage(playeridLARANJA"Nгo hб nenhum foco de incendio em San Andreas no momento.");
        
Servico[playerid] = true;
        
SetPlayerCheckpoint(playeridLugarFogo[0], LugarFogo[1], LugarFogo[2], 8.0);
        
SendClientMessage(playeridAMARELO"Siga o checkpoint com um carro de bombeiros ou com um extintor agora !!");
        
Tick GetTickCount();
        return 
1;
    }
//FIM DO GM
public Fogoo()
{
    new 
fire random(sizeof(Fogo));
    new 
Float:XFloat:YFloat:Z;
    
GetObjectPos(Fire[0], XYZ);
    if(
LugarFogo[0] != X) { LugarFogo[0] = X; }
    else if(
LugarFogo[1] != Y) { LugarFogo[1] = Y; }
    else if(
LugarFogo[2] != Z) { LugarFogo[2] = Z; }
    if(
GetTickCount() - Tick TEMPO*1000)
    {
        if(
== false)
        {
            for(new 
0sizeof(Fire); ++) { DestroyObject(Fire[f]); DestroyObject(Fire[f]); }
            
true;
            
Timer SetTimer("Apagar"APAGAR*1000false);
            
Fire[0] = CreateObject(18691Fogo[fire][0], Fogo[fire][1], Fogo[fire][2]-2.50.00.00.0);
            
Fire[1] = CreateObject(18691Fogo[fire][0]+1Fogo[fire][1], Fogo[fire][2]-2.50.00.00.0);
            
Fire[2] = CreateObject(18691Fogo[fire][0], Fogo[fire][1]+1Fogo[fire][2]-2.50.00.00.0);
            
Fire[3] = CreateObject(18691Fogo[fire][0]+1Fogo[fire][1]+1Fogo[fire][2]-2.50.00.00.0);
            
Fire[4] = CreateObject(18691Fogo[fire][0]-1Fogo[fire][1], Fogo[fire][2]-2.50.00.00.0);
            
Fire[5] = CreateObject(18691Fogo[fire][0], Fogo[fire][1]-1Fogo[fire][2]-2.50.00.00.0);
            
Fire[6] = CreateObject(18691Fogo[fire][0]-1Fogo[fire][1]-1Fogo[fire][2]-2.50.00.00.0);
            for(new 
0MAX_PLAYERSi++)
            {
                if(
Bombeiro[i] == true && Servico[i] == true)
                {
                    new 
str[128];
                    
format(strsizeof(str), "Hб um novo foco de incкndio ! Siga o checkpoint com um carro de bombeiros ou extintor agora !!"Fogo[fire][0], Fogo[fire][1], Fogo[fire][2]);
                    
SendClientMessage(iAMARELOstr);
                    
SetPlayerCheckpoint(iFogo[fire][0], Fogo[fire][1], Fogo[fire][2], 8.0);
                    
LugarFogo[0] = Fogo[fire][0];
                    
LugarFogo[1] = Fogo[fire][1];
                    
LugarFogo[2] = Fogo[fire][2];
                }
            }
        }
    }
    for(new 
0MAX_PLAYERS++) { if(IsPlayerInRangeOfPoint(i401731.51, -1449.3213.12)) return RemovePlayerMapIcon(iICON); }
    return 
1;
}
public 
Apagar()
{
    if(
== true)
    {
        for(new 
0MAX_PLAYERS++)
        {
            if(
Bombeiro[i] == true && Servico[i] == true)
            {
                
SendClientMessage(iVERMELHO"O incendio nao foi apagado por nenhum bombeiro e o fogo se extinguiu.");
                
DisablePlayerCheckpoint(i);
                
Chegou[i] = false;
            }
            
false;
            for(new 
0sizeof(Fire); ++)
            {
                
DestroyObject(Fire[f]);
                
DestroyObject(Fire[f]);
            }
            
Tick GetTickCount();
        }
    }
    return 
1;
}
public 
Check(playerid)
{
        if(
GetPlayerState(playerid) == 1)
        {
            if(
GetPlayerWeapon(playerid) == 42)
            {
                if(
IsPlayerInRangeOfPoint(playerid7.0LugarFogo[0], LugarFogo[1], LugarFogo[2]))
                {
                    if(
Apagando[playerid] > 0)
                    {
                        
Apagando[playerid]++;
                        
SetTimerEx("Check"750false"i"playerid);
                        if(
Apagando[playerid] == 13)
                        {
                            for(new 
0sizeof(Fire); ++) { DestroyObject(Fire[f]); DestroyObject(Fire[f]); }
                            
false;
                            
GivePlayerMoney(playerid500);
                            for(new 
0MAX_PLAYERS++)
                            {
                                
Chegou[i] = false;
                                
Apagando[i] = 0;
                                
SendClientMessage(iAMARELO"O incкndio foi apagado !");
                                
Tick GetTickCount();
                                
DisablePlayerCheckpoint(i);
                                
KillTimer(Timer);
                            }
                        }
                    }
                }
            }
        }
        if(
GetPlayerState(playerid) == 2)
        {
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
            {
                if(
IsPlayerInRangeOfPoint(playerid12.0LugarFogo[0], LugarFogo[1], LugarFogo[2]))
                {
                    if(
Apagando[playerid] > 0)
                    {
                        
Apagando[playerid]++;
                        
SetTimerEx("Check"750false"i"playerid);
                        if(
Apagando[playerid] == 10)
                        {
                            for(new 
0sizeof(Fire); ++) { DestroyObject(Fire[f]); DestroyObject(Fire[f]); }
                            
false;
                            
GivePlayerMoney(playerid500);
                            for(new 
0MAX_PLAYERS++)
                            {
                                
Chegou[i] = false;
                                
Apagando[i] = 0;
                                
SendClientMessage(iAMARELO"O incкndio foi apagado !");
                                
Tick GetTickCount();
                                
DisablePlayerCheckpoint(i);
                                
KillTimer(Timer);
                            }
                        }
                    }
                }
            }
        }
    }
    return 
1;

AGRADEЗO MESMO
Reply
#2

Serб bem mais facil vocк usб-lo como FS mesmo, pois para agregб-lo ao teu GameMode irб dar um pouco de trabalho.

Todavia, poste os erros e as respectivas linhas.
Reply
#3

Mas o fs nao condiz com o meu gm ^^ e eu quero melhorar algumas coisas :P

as linhas tao todas ai os erros tao aqui

Quote:

C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\pawno\include\utils.inc(51) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2750) : warning 225: unreachable code
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(3421) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(3646) : warning 204: symbol is assigned a value that is never used: "cut"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(6371) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(10103) : error 017: undefined symbol "playerid"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(29267) : error 017: undefined symbol "F"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(29271) : error 017: undefined symbol "Tick"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(42399) : warning 202: number of arguments does not match definition
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43929) : warning 219: local variable "alarme" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43929) : warning 219: local variable "portas" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43929) : warning 219: local variable "capo" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43929) : warning 219: local variable "portamalas" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43979) : error 017: undefined symbol "Tick"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43981) : error 017: undefined symbol "F"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43984) : error 017: undefined symbol "F"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43984) : warning 215: expression has no effect
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43995) : error 017: undefined symbol "Bombeiro"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43995) : warning 215: expression has no effect
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43995) : error 001: expected token: ";", but found "]"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43995) : error 029: invalid expression, assumed zero
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43995) : fatal error 107: too many error messages on one line

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


10 Errors.

LINHAS TODAS

PHP код:
//TOPO GM

#define HOLDING(%0) \
    
((newkeys & (%0)) == (%0))

#define RELEASED(%0) \
    
(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))

#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

#define ICON 42
#define ENTRAR 942
#define SAIR 943
#define AJUDA 944

#define CINZA 0xD6D6D6FF
#define AMARELO 0xF7E200FF
#define LARANJA 0xE89200FF

#define TEXT3D //CASO QUEIRA QUE NA CABEЗA DO BOMBEIRO TENHA DIZENDO QUE ELE Й BOMBEIRO DEIXE ESTE #define, CASO NГO, RETIRE-O

#define TEMPO 35 //TROQUE PELO TEMPO ENTRE UM INCENDIO E OUTRO (EM SEGUNDOS !)
#define APAGAR 30 //TROQUE PELO TEMPO QUE OS BOMBEIROS TКM PARA APAGAR O INCENDIO (EM SEGUNDOS !)

forward Apagar();
forward Check(playerid);
forward Fogoo();

new 
Timer;
new 
bool:Chegou[MAX_PLAYERS];
new 
bool:Servico[MAX_PLAYERS];
new 
Apagando[MAX_PLAYERS];
new 
Float:LugarFogo[3];
new 
Fire[7];
#if defined TEXT3D
new Text3D:texto[MAX_PLAYERS];
#endif
new Float:Fogo[][3] = {
{
1916.9470, -1400.908213.5703}, //TROQUE PELAS COORDENADAS QUE O FOGO PODE ESTAR
{2330.6628, -1805.527013.5469},  //TROQUE PELAS COORDENADAS QUE O FOGO PODE ESTAR
{2382.5210, -1131.247930.2030},
{
2164.3052, -1004.478062.7962},
{
1282.3912, -817.939584.1406},
{
811.7228, -1098.165325.9063},
{
649.1138, -1705.134514.5158},
{
153.8757, -1941.52433.7734},
{
132.7246, -1516.675510.4878},
{
262.1424, -1171.095179.4105}
};
new 
Cores[] = {
0xE02A2AFF,
0x3CE02AFF,
0xED8E12FF,
0xED12BAFF,
0x4912EDFF,
0x12EDAFFF
};

//OnPlayerCommandText

    
if(strcmp(cmd"/servico"true) == || strcmp(cmd"/serviзo"true) == 0)
    {
        if(
PlayerInfo[playerid][pJob] < 21)
        if(
Servico[playerid] == false)
        {
            
Servico[playerid] = true;
            
SendClientMessage(playeridAMARELO"Vocк entrou em serviзo.");
            
SetPVarInt(playerid"Skin"GetPlayerSkin(playerid));
            new 
skin[3] = { 277278279 };
            
SetPlayerSkin(playeridskin[random(sizeof(skin))]);
            
#if defined TEXT3D
            
Delete3DTextLabel(texto[playerid]);
            
texto[playerid] = Create3DTextLabel("» Bombeiro: EM SERVIЗO «",0xFF2600FF,10.0,40.0,10.0,20.0,0);
               
Attach3DTextLabelToPlayer(texto[playerid], playerid0.00.00.4);
               
#endif
        
}
        else
        {
            
Servico[playerid] = false;
            
SendClientMessage(playeridAMARELO"Vocк saiu do serviзo.");
            
SetPlayerSkin(playeridGetPVarInt(playerid"Skin"));
            
DisablePlayerCheckpoint(playerid);
            
#if defined TEXT3D
            
Delete3DTextLabel(texto[playerid]);
            
#endif
        
}
        return 
1;
    }

    if(
strcmp(cmd"/desativar"true) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] < 1)
        for(new 
0sizeof(Fire); ++)
        {
            
DestroyObject(Fire[f]);
            
DestroyObject(Fire[f]);
        }
        for(new 
0MAX_PLAYERS++)
        {
            
Servico[i] = false;
            
Apagando[i] = 0;
            
Chegou[i] = false;
            
DisablePlayerCheckpoint(i);
            
KillTimer(Timer);
        }
        
SendClientMessage(playeridAMARELO"O sistema de incendio foi desativado temporariamente ! Para reativб-lo digite /ativar.");
        return 
1;
    }
    if(
strcmp(cmd"/ativar"true) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] < 1)
        
SendClientMessage(playeridAMARELO"O sistema de incendio foi ativado novamente. Para desativб-lo digite /desativar.");
        return 
1;
    }
    if(
strcmp(cmd"/fogo"true) == 0)
    {
        if(
PlayerInfo[playerid][pJob] < 21)
        
SendClientMessage(playeridVERMELHO"Vocк nгo й bombeiro.");
        if(
== false) return SendClientMessage(playeridLARANJA"Nгo hб nenhum foco de incendio em San Andreas no momento.");
        
Servico[playerid] = true;
        
SetPlayerCheckpoint(playeridLugarFogo[0], LugarFogo[1], LugarFogo[2], 8.0);
        
SendClientMessage(playeridAMARELO"Siga o checkpoint com um carro de bombeiros ou com um extintor agora !!");
        
Tick GetTickCount();
        return 
1;
    }

//FIM DO GM

public Fogoo()
{
    new 
fire random(sizeof(Fogo));
    new 
Float:XFloat:YFloat:Z;
    
GetObjectPos(Fire[0], XYZ);
    if(
LugarFogo[0] != X) { LugarFogo[0] = X; }
    else if(
LugarFogo[1] != Y) { LugarFogo[1] = Y; }
    else if(
LugarFogo[2] != Z) { LugarFogo[2] = Z; }
    if(
GetTickCount() - Tick TEMPO*1000)
    {
        if(
== false)
        {
            for(new 
0sizeof(Fire); ++) { DestroyObject(Fire[f]); DestroyObject(Fire[f]); }
            
true;
            
Timer SetTimer("Apagar"APAGAR*1000false);
            
Fire[0] = CreateObject(18691Fogo[fire][0], Fogo[fire][1], Fogo[fire][2]-2.50.00.00.0);
            
Fire[1] = CreateObject(18691Fogo[fire][0]+1Fogo[fire][1], Fogo[fire][2]-2.50.00.00.0);
            
Fire[2] = CreateObject(18691Fogo[fire][0], Fogo[fire][1]+1Fogo[fire][2]-2.50.00.00.0);
            
Fire[3] = CreateObject(18691Fogo[fire][0]+1Fogo[fire][1]+1Fogo[fire][2]-2.50.00.00.0);
            
Fire[4] = CreateObject(18691Fogo[fire][0]-1Fogo[fire][1], Fogo[fire][2]-2.50.00.00.0);
            
Fire[5] = CreateObject(18691Fogo[fire][0], Fogo[fire][1]-1Fogo[fire][2]-2.50.00.00.0);
            
Fire[6] = CreateObject(18691Fogo[fire][0]-1Fogo[fire][1]-1Fogo[fire][2]-2.50.00.00.0);
            for(new 
0MAX_PLAYERSi++)
            {
                if(
Bombeiro[i] == true && Servico[i] == true)
                {
                    new 
str[128];
                    
format(strsizeof(str), "Hб um novo foco de incкndio ! Siga o checkpoint com um carro de bombeiros ou extintor agora !!"Fogo[fire][0], Fogo[fire][1], Fogo[fire][2]);
                    
SendClientMessage(iAMARELOstr);
                    
SetPlayerCheckpoint(iFogo[fire][0], Fogo[fire][1], Fogo[fire][2], 8.0);
                    
LugarFogo[0] = Fogo[fire][0];
                    
LugarFogo[1] = Fogo[fire][1];
                    
LugarFogo[2] = Fogo[fire][2];
                }
            }
        }
    }
    for(new 
0MAX_PLAYERS++) { if(IsPlayerInRangeOfPoint(i401731.51, -1449.3213.12)) return RemovePlayerMapIcon(iICON); }
    return 
1;
}

public 
Apagar()
    {
        for(new 
0MAX_PLAYERS++)
        {
            if(
PlayerInfo[playerid][pJob] < 21 && Servico[i] == true)
            {
                
SendClientMessage(iVERMELHO"O incendio nao foi apagado por nenhum bombeiro e o fogo se extinguiu.");
                
DisablePlayerCheckpoint(i);
                
Chegou[i] = false;
             }
            for(new 
0sizeof(Fire); ++)
            {
                
DestroyObject(Fire[f]);
                
DestroyObject(Fire[f]);
            }
            
Tick GetTickCount();
        }
    }
    return 
1;
}

public 
Check(playerid)
{
        if(
GetPlayerState(playerid) == 1)
        {
            if(
GetPlayerWeapon(playerid) == 42)
            {
                if(
IsPlayerInRangeOfPoint(playerid7.0LugarFogo[0], LugarFogo[1], LugarFogo[2]))
                {
                    if(
Apagando[playerid] > 0)
                    {
                        
Apagando[playerid]++;
                        
SetTimerEx("Check"750false"i"playerid);
                        if(
Apagando[playerid] == 13)
                        {
                            for(new 
0sizeof(Fire); ++) { DestroyObject(Fire[f]); DestroyObject(Fire[f]); }
                            
GivePlayerMoney(playerid500);
                            for(new 
0MAX_PLAYERS++)
                            {
                                
Chegou[i] = false;
                                
Apagando[i] = 0;
                                
SendClientMessage(iAMARELO"O incкndio foi apagado !");
                                
Tick GetTickCount();
                                
DisablePlayerCheckpoint(i);
                                
KillTimer(Timer);
                            }
                        }
                    }
                }
            }
        }
        if(
GetPlayerState(playerid) == 2)
        {
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
            {
                if(
IsPlayerInRangeOfPoint(playerid12.0LugarFogo[0], LugarFogo[1], LugarFogo[2]))
                {
                    if(
Apagando[playerid] > 0)
                    {
                        
Apagando[playerid]++;
                        
SetTimerEx("Check"750false"i"playerid);
                        if(
Apagando[playerid] == 10)
                        {
                            for(new 
0sizeof(Fire); ++) { DestroyObject(Fire[f]); DestroyObject(Fire[f]); }
                            
GivePlayerMoney(playerid500);
                            for(new 
0MAX_PLAYERS++)
                            {
                                
Chegou[i] = false;
                                
Apagando[i] = 0;
                                
SendClientMessage(iAMARELO"O incкndio foi apagado !");
                                
Tick GetTickCount();
                                
DisablePlayerCheckpoint(i);
                                
KillTimer(Timer);
                            }
                        }
                    }
                }
            }
        }
    }
    return 
1;
}

public 
OnPlayerEnterCheckpoint(playerid)
{
    if(
Servico[playerid] == true && Chegou[playerid] == false)
    {
        
SendClientMessage(playeridLARANJA"Vocк acaba de chegar no foco de incendio ! Aponte o extintor ou o jato d'agua para o fogo por algum tempo para apagб-lo.");
        
Chegou[playerid] = true;
    }
    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    
Apagando[playerid] = 0;
    
Servico[playerid] = false;
    
Chegou[playerid] = false;
    return 
1;

ta tudo ai
Reply
#4

Pra vocк colocar um FS assim no seu GM й preciso de um pouco mais de experiencia, somente com o FS nгo vamos poder ajudar, teria que saber muitas coisas do seu GM...
Usa como FS por inquanto .
Reply
#5

Eu sei tudo o que tenho no meu gm -.-" nao quer ajudar ? entao nao poste porfavor
Reply
#6

Um dos erros й a retirada da array F, nгo vou colocar todos aqui pois tenho que ver seu GM e etc ...

Aconselho-te a usб-lo como FS, mas modificar o que quiser no FS. Ok ?
Reply
#7

1є Estб faltando a enum pInfo do seu gamemode.

PHP код:
if(strcmp(cmd"/servico"true) == || strcmp(cmd"/serviзo"true) == 0)
    {
        if(
PlayerInfo[playerid][pJob] < 21)
        if(
Servico[playerid] == false)
        { 
e.e ?
if(PlayerInfo[playerid][pJob] < 21)

Cadк a chave apуs o < 21) ..
?


Tб completamente errado a sua tentativa =/
Como disseram, tenta analisar mais e... aprender um pouco mais pra depois passar para o gamemode.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)