[Ajuda] Galera como coloco isto no GM.
#1

Bom Galera, me falaro que esse sistema й bom , eu uso o GM Brasil magic games quando eu tento acresentar o codigo no GM da erro, vcs pd me falar onde eu coloco:

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) {
    if(!
strcmp(cmdtext"/blindar"true)) {
        if(!
IsPlayerInAnyVehicle(playerid))
            return 
false;
        
SendClientMessage(playerid, -1"Blindagem adcionada");
        
Blindagem[GetPlayerVehicleID(playerid)] = 1000;
        
RepairVehicle(GetPlayerVehicleID(playerid));
        return 
1;
    }
    if(!
strcmp(cmdtext"/verblindagem"true)) {
        if(!
IsPlayerInAnyVehicle(playerid))
            return 
false;
        new 
s[50];
        
format(s50"Esse veнculo tem %i de blindagem"Blindagem[GetPlayerVehicleID(playerid)]);
        
SendClientMessage(playerid, -1s);
        return 
true;
    }
    return 
false;
}
public 
OnVehicleDamageStatusUpdate(vehicleidplayerid) {
    if(
Blindagem[vehicleid] > 0) {
        
Blindagem[vehicleid] --;
        
RepairVehicle(vehicleid);
        if(!
Blindagem[vehicleid]) {
            
SendClientMessage(playerid, -1"Blindagem acabou..!");
        }
    }
    return 
true;

Reply
#2

Ligando minha bola de cristal....
Esqueci que nгo tenho :/

Pode falar os erros e suas linhas?
Sobre o posicionamento, como sгo publics logo abaixo das #include, #define e das varнaveis globais.
Reply
#3

Ligando bola de cristal... (Pra zuar o outro ali em cima)

"Tim - Viver sem fronteiras: Desculpe, sua bola de cristal estб fora da бrea de cobertura"
Reply
#4

manda os erros nй filho ¬¬
Reply
#5

Quote:
Originally Posted by Spectro_BR
Посмотреть сообщение
manda os erros nй filho ¬¬
PHP код:
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14948) : warning 217loose indentation
C
:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14948) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14948) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 017undefined symbol "Blindagem"
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 001expected token";"but found "]"
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
6 Errors

Reply
#6

Quote:
Originally Posted by petrick_schoba
Посмотреть сообщение
PHP код:
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14948) : warning 217loose indentation
C
:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14948) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14948) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 017undefined symbol "Blindagem"
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 001expected token";"but found "]"
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
6 Errors

agora manda a linha 14953 '-'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)