SA-MP Forums Archive
[Ajuda] erro de arrays nao sei '-' - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] erro de arrays nao sei '-' (/showthread.php?tid=649663)



erro de arrays nao sei '-' - HelderPT - 12.02.2018

bem fui compilar meu gm e me deparei com isso !

C:\Users\HelderPT\Desktop\GamemodeGDF\gamemodes\GD FRJ.pwn(1070) : error 052: multi-dimensional arrays must be fully initialized

LINHAS DOS ERROS

enum vehicle_info
{
Owner,
bool:Private,
bool:Locked,
bool:Shared,
bool:NeonStatus,
Neon[12]
}


Re: erro de arrays nao sei '-' - TheusCrazzy - 13.02.2018

PHP код:
enum vehicle_info
{
    
Owner,
    
bool:    Private,
    
bool:    Locked,
    
bool:    Shared,
    
bool:    NeonStatus,
    
Neon[12],
}; 



Re: erro de arrays nao sei '-' - DelK - 13.02.2018

Quote:
Originally Posted by TheusCrazzy
Посмотреть сообщение
PHP код:
enum vehicle_info
{
    
Owner,
    
bool:    Private,
    
bool:    Locked,
    
bool:    Shared,
    
bool:    NeonStatus,
    
Neon[12],
}; 
O ultimo nгo tem virgula.


Re: erro de arrays nao sei '-' - TheusCrazzy - 13.02.2018

Quote:
Originally Posted by DelK
Посмотреть сообщение
O ultimo nгo tem virgula.
Nгo faz diferenзa kkk, mas eu acho que o motivo do erro nгo й isso. Cadк o resto da enum?

Exemplo:

PHP код:
enum portao_Info
{
    
bool:       portaoCreated,
    
Float:      portaoX,
    
Float:      portaoY,
    
Float:      portaoZ,
    
Float:      portaoRX,
    
Float:      portaoRY,
    
Float:      portaoRZ,
    
Text3D:     portaoText,
    
portaoObject,
    
portaoSenha[128],
    
portaoNick  [MAX_PLAYER_NAME 1],
};
new 
PortaoInfo[MAX_PORTAO][portao_Info]; 



Re: erro de arrays nao sei '-' - n0minal - 13.02.2018

Posta a variбvel que usa o enum vehicle_info.