[Ajuda] ERRO INFO
#1

Bom tб dando esses erros vo posta linha do erro й os erros

Erros:
PHP Code:
Mode.pwn(16253 -- 16266) : error 012invalid function callnot a valid address
Mode
.pwn(16266) : warning 215expression has no effect
Mode
.pwn(16266) : error 001expected token";"but found ")"
Mode.pwn(16266) : error 029invalid expressionassumed zero
Mode
.pwn(16266) : fatal error 107too many error messages on one line 
Linhas do erro:
PHP Code:
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], 
Code:
PHP Code:
Status(playerid)
{
    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"; }
    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
#2

Code:
format(String, sizeof(String),
"{FFFFFF}Nick: {FBEE3D}%s\n\
 {FFFFFF}Admin: {a4a4a4}%s\n\
 {FFFFFF}Matou: {a4a4a4}%d\n\
 {FFFFFF}MOrreu: {9c9c9c}%d", Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu]);
Reply
#3

e o restante do code?
Reply
#4

Quote:
Originally Posted by Dimbalada
View Post
e o restante do code?
Vocк teve dъvida em relaзгo o code, certo ? Monte-o vocк mesmo...
Reply
#5

pode me explicar melhor aonde esta o erro?
Reply
#6

Quote:
Originally Posted by Dimbalada
View Post
pode me explicar melhor aonde esta o erro?
Eu deixei o code sublinhado, ver ai o 'vermelho' й a onde estб o erro
Reply
#7

Cade ); aqui ?
Quote:

{FFFFFF}Organizaзгo: {9c9c9c}%s", Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu],

Reply
#8

Quote:
Originally Posted by Dimbalada
View Post
Cade ); aqui ?
Isso mesmo!
Reply
#9

Continu o mesmo erro nada adiantou
Reply
#10

Quote:
Originally Posted by Dimbalada
View Post
Continu o mesmo erro nada adiantou
Posta o code do erro amigo! ninguйm aqui й profeta nгo filhгo... Primeiro vocк posta um code funcional completo e posta outro incompleto com erro, tu quer oque mesmo?

Resuma seus erros e poste o code claramente, porque vocк esta fazendo algo errado ai no seu "gamemode"
Reply
#11

Primeiro calma й olha o topico lб em cima code completo, linhas do erro й erros ai voce me diz porfavor qual й o erro
Reply
#12

Pode especificar melhor a linha do erro?
Reply
#13

Quote:
Originally Posted by Green7
View Post
Pode especificar melhor a linha do erro?
Nome dos erros
Quote:

gamemodes\Mode.pwn(16253 -- 16266) : error 012: invalid function call, not a valid address
gamemodes\Mode.pwn(16266) : warning 217: loose indentation
gamemodes\Mode.pwn(16266) : warning 215: expression has no effect
gamemodes\Mode.pwn(16266) : error 001: expected token: ";", but found ")"
gamemodes\Mode.pwn(16266) : error 029: invalid expression, assumed zero
gamemodes\Mode.pwn(16266) : fatal error 107: too many error messages on one line

Agora as linhas dos erros

PHP Code:
linha 16253format(Stringsizeof(String),
linha 16266: {FFFFFF}Organizaзгo: {9c9c9c}%s", Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu], 
Agora o sistema de info completo

PHP Code:
Status(playerid)
{
    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"; }
    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
#14

PHP Code:
Status(playerid

    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"; } 

    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

Tenta aн.
Reply
#15

Quote:

C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16253 -- 16266) : error 012: invalid function call, not a valid address
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16266) : warning 217: loose indentation
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16266) : warning 215: expression has no effect
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16266) : error 001: expected token: ";", but found ")"
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16266) : error 029: invalid expression, assumed zero
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16266) : fatal error 107: too many error messages on one line

mesmo erro
Reply
#16

PHP Code:
Status(playerid

    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"; } 

    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

Tenta aн de novo.
Reply
#17

Mesmo erros mano
Quote:

C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16253 -- 16267) : error 012: invalid function call, not a valid address
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16267) : warning 215: expression has no effect
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16267) : error 001: expected token: ";", but found ")"
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16267) : error 029: invalid expression, assumed zero
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(16267) : fatal error 107: too many error messages on one line

Linhas do erro:
Quote:

16253: format(String, sizeof(String),
16267:Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu],

Reply
#18

alguem ai pode me ajudar?
Reply
#19

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";
    
    } 
Reply
#20

Use esse compilador: https://sampforum.blast.hk/showthread.php?pid=2768123#pid2768123 (baixe os executбveis e coloque na pasta pawno).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)