[Ajuda] ERRO INFO
#21

Quote:
Originally Posted by FerrariL
View Post
Troque essa parte
PHP Code:
 new String[500]; 
    
format(Stringsizeof(String), 
   
"{FFFFFF}Nick: {FBEE3D}%s\n\
    {FFFFFF}Admin: {a4a4a4}%s\n\
    {FFFFFF}Matou: {a4a4a4}%d\n\
    {FFFFFF}Morreu: {a4a4a4}%d\n\
    {FFFFFF}Score: {a4a4a4}%d\n\
    {FFFFFF}Cash: {fff600}%d\n\
    {FFFFFF}Dinheiro: {49ad00}%d\n\
    {FFFFFF}Tempo de Jogo: {a4a4a4}%s\n\
    {FFFFFF}Tipo de Conta: {a4a4a4}%s\n\
    {FFFFFF}Maconha: {a4a4a4}%d\n\
    {FFFFFF}Cocaina: {a4a4a4}%d\n\
    {FFFFFF}Fogos: {a4a4a4}%d\n\
    {FFFFFF}Organizaзгo: {9c9c9c}%s"
,
    
Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu], 
    
GetPlayerScore(playerid), Player[playerid][Cash], GetPlayerMoney(playerid), Convert(Player[playerid][pOnlineTime]), oRGFext3Player[playerid][Maconha], 
    
Player[playerid][Cocaina], Player[playerid][Fogos],oRGFext1); 
Por essa,e veja se funciona:
PHP Code:
 new String[500]; 
    
format(Stringsizeof(String), 
   
"{FFFFFF}Nick: {FBEE3D}%s\n
    {FFFFFF}Admin: {a4a4a4}%s\n
    {FFFFFF}Matou: {a4a4a4}%d\n
    {FFFFFF}Morreu: {a4a4a4}%d\n
    {FFFFFF}Score: {a4a4a4}%d\n
    {FFFFFF}Cash: {fff600}%d\n
    {FFFFFF}Dinheiro: {49ad00}%d\n
    {FFFFFF}Tempo de Jogo: {a4a4a4}%s\n
    {FFFFFF}Tipo de Conta: {a4a4a4}%s\n
    {FFFFFF}Maconha: {a4a4a4}%d\n
    {FFFFFF}Cocaina: {a4a4a4}%d\n
    {FFFFFF}Fogos: {a4a4a4}%d\n
    {FFFFFF}Organizaзгo: {9c9c9c}%s"
,
    
Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu], 
    
GetPlayerScore(playerid), Player[playerid][Cash], GetPlayerMoney(playerid), Convert(Player[playerid][pOnlineTime]), oRGFext3Player[playerid][Maconha], 
    
Player[playerid][Cocaina], Player[playerid][Fogos],oRGFext1); 
Da pra melhorar isso aqui :
PHP Code:
new CargoAdmintext[100]; 
    if(
Player[playerid][Admin] == 5) { CargoAdmintext "[5]: Game Master"; } 
    if(
Player[playerid][Admin] == 4) { CargoAdmintext "[4]: Sub Game Master"; } 
    if(
Player[playerid][Admin] == 3) { CargoAdmintext "[3]: Administrador Fixo"; } 
    if(
Player[playerid][Admin] == 2) { CargoAdmintext "[2]: Administrador Ajudante"; } 
    if(
Player[playerid][Admin] == 1) { CargoAdmintext "[1]: Administrador Temporбrio"; } 
    if(
Player[playerid][Admin] == 0) { CargoAdmintext "Nao"; } 
Maneira legal
PHP Code:
new CargoAdmintext[100]; 
    switch(
Player[playerid][Admin])
    {
        case 
0:
            
CargoAdmintext "Nao";
            
        case 
1:
            
CargoAdmintext "[1]: Administrador Temporбrio";
            
        case 
2:
             
CargoAdmintext "[2]: Administrador Ajudante";
             
        case 
3:
            
CargoAdmintext "[3]: Administrador Fixo";
            
        case 
4:
            
CargoAdmintext "[4]: Sub Game Master";
            
        case 
5:
            
CargoAdmintext "[5]: Game Master";
    
    } 

Nome dos erros:
PHP Code:
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16243) : warning 219local variable "CargoAdmintext" shadows a variable at a preceding level
C
:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16282 -- 16283) : error 037invalid string (possibly non-terminated string)
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16283) : warning 217loose indentation
C
:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16283) : error 017undefined symbol "FFFFFF"
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16283) : warning 217loose indentation
C
:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16283) : error 017undefined symbol "FBEE3D"
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16283) : fatal error 107too many error messages on one line 
Linha dos erros:
PHP Code:
16282format(Stringsizeof(String),
"16283: {FFFFFF}Nick: {FBEE3D}%s\n 
Code completo:
PHP Code:
Status(playerid)
{
    new 
CargoAdmintext[100];
    switch(
Player[playerid][Admin])
    {
        case 
0:
            
CargoAdmintext "Nao";
        case 
1:
            
CargoAdmintext "[1]: Administrador Temporбrio";
        case 
2:
             
CargoAdmintext "[2]: Administrador Ajudante";
        case 
3:
            
CargoAdmintext "[3]: Administrador Fixo";
        case 
4:
            
CargoAdmintext "[4]: Sub Game Master";
        case 
5:
            
CargoAdmintext "[5]: Game Master";
    }
    
    new 
oRGFext1[100], oRGFext3[100], oRGFext4[100];
    if(
Player[playerid][PMRJ] == 0) { oRGFext1 "Nenhuma"; }
    if(
Player[playerid][BOPE] == 0) { oRGFext1 "Nenhuma"; }
    if(
Player[playerid][pHelper] == 0) { oRGFext1 "Nenhuma"; }
    if(
Player[playerid][Reporter] == 0) { oRGFext1 "Nenhuma"; }
    if(
Player[playerid][BOPE] >= 1) { oRGFext1 "BOPE"; }
    if(
Player[playerid][PMRJ] >= 1){ oRGFext1 "Policia Militar"; }
    if(
Player[playerid][pHelper] >= 1) { oRGFext1 "Helper"; }
    if(
Player[playerid][Reporter] >= 1) { oRGFext1 "Reporter"; }
    if(
Player[playerid][Vip] == 0) { oRGFext3 "Free"; }
    if(
Player[playerid][Vip] == 1) { oRGFext3 "VIP"; }
    if(
Player[playerid][Maconha] == 0) { oRGFext4 "Nгo"; }
    if(
Player[playerid][Fogos] == 0) { oRGFext4 "Nгo"; }
    if(
Player[playerid][Cocaina] == 0) { oRGFext4 "Nгo"; }
    new 
String[500];
    
format(Stringsizeof(String),
   
"{FFFFFF}Nick: {FBEE3D}%s\n
    {FFFFFF}Admin: {a4a4a4}%s\n
    {FFFFFF}Matou: {a4a4a4}%d\n
    {FFFFFF}Morreu: {a4a4a4}%d\n
    {FFFFFF}Score: {a4a4a4}%d\n
    {FFFFFF}Cash: {fff600}%d\n
    {FFFFFF}Dinheiro: {49ad00}%d\n
    {FFFFFF}Tempo de Jogo: {a4a4a4}%s\n
    {FFFFFF}Tipo de Conta: {a4a4a4}%s\n
    {FFFFFF}Maconha: {a4a4a4}%d\n
    {FFFFFF}Cocaina: {a4a4a4}%d\n
    {FFFFFF}Fogos: {a4a4a4}%d\n
    {FFFFFF}Organizaзгo: {9c9c9c}%s"
,
    
Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu],
    
GetPlayerScore(playerid), Player[playerid][Cash], GetPlayerMoney(playerid), Convert(Player[playerid][pOnlineTime]), oRGFext3Player[playerid][Maconha],
    
Player[playerid][Cocaina], Player[playerid][Fogos],oRGFext1);
    
ShowPlayerDialog(playerid666DIALOG_STYLE_MSGBOX"{FFFFFF}INFO{06C57F}»"String"Fechar""");
    return 
1;

Reply


Messages In This Thread
ERRO INFO - by Dimbalada - 04.03.2018, 23:37
Re: ERRO INFO - by PilateGR - 04.03.2018, 23:54
Re: ERRO INFO - by Dimbalada - 04.03.2018, 23:56
Re: ERRO INFO - by PilateGR - 05.03.2018, 00:01
Re: ERRO INFO - by Dimbalada - 05.03.2018, 00:11
Re: ERRO INFO - by PilateGR - 05.03.2018, 00:27
Re: ERRO INFO - by Dimbalada - 05.03.2018, 00:33
Re: ERRO INFO - by PilateGR - 05.03.2018, 00:35
Re: ERRO INFO - by Dimbalada - 05.03.2018, 00:53
Re: ERRO INFO - by PilateGR - 05.03.2018, 00:57
Re: ERRO INFO - by Dimbalada - 05.03.2018, 01:01
Re: ERRO INFO - by Green7 - 05.03.2018, 01:07
Re: ERRO INFO - by Dimbalada - 05.03.2018, 01:31
Re: ERRO INFO - by Green7 - 05.03.2018, 01:45
Re: ERRO INFO - by Dimbalada - 05.03.2018, 01:52
Re: ERRO INFO - by Green7 - 05.03.2018, 02:10
Re: ERRO INFO - by Dimbalada - 05.03.2018, 02:18
Re: ERRO INFO - by Dimbalada - 05.03.2018, 15:11
Re: ERRO INFO - by FerrariL - 05.03.2018, 15:23
Re: ERRO INFO - by RodrigoMSR - 05.03.2018, 15:28
Re: ERRO INFO - by Dimbalada - 05.03.2018, 15:33
Re: ERRO INFO - by FerrariL - 05.03.2018, 15:35
Re: ERRO INFO - by Dimbalada - 05.03.2018, 15:47
Re: ERRO INFO - by RodrigoMSR - 05.03.2018, 15:48
Re: ERRO INFO - by FerrariL - 05.03.2018, 15:50
Re: ERRO INFO - by Dimbalada - 05.03.2018, 15:54
Re: ERRO INFO - by FerrariL - 06.03.2018, 12:14

Forum Jump:


Users browsing this thread: 7 Guest(s)