SA-MP Forums Archive
[Ajuda] YSI\y_hooks - 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] YSI\y_hooks (/showthread.php?tid=646559)



YSI\y_hooks - Maxwilson01 - 18.12.2017

Olб,

Sinceramente nгo mais o que fazer kk, a tempo atras fiz gm de estudo em modular usando "YSI\y_hooks" sempre que compilava funcionava tudo certinho. Peguei a mesma estrutura criei um novo porйm por alguma motivo variбvel do player nгo й reconhecida como se nгo tivesse lendo o arquivo.

PHP Code:
//================[Player]================//
#include "../Modulos/players/enumplayer.pwn"
// ============== [Server] ===============//
#include "../Modulos/server/antiAMX.pwn"
#include "../Modulos/server/startgameName.pwn"
#include "../Modulos/server/onplayertext.pwn"
#include "../Modulos/server/register_login.pwn" 
https://i.imgur.com/ZY6J4sp.png


Arquivo enumplayer.pwn

PHP Code:
#include <YSI\y_hooks>
enum pInfo
{
    
bool:NickF false,
    
SobN[128],
    
bool:Espiando,
    
bool:Oculto,
    
Admin
}
new 
InfoPlayer[MAX_PLAYERS][pInfo]; 
To usando ZeeX compil... como foi explicado nesse tutorial https://sampforum.blast.hk/showthread.php?tid=620364

Alguйm poderia me da uma forзa?


Re: YSI\y_hooks - UserUnk0wn - 18.12.2017

Bom mano, pelo o que eu estou vendo na imagem do erro estб "PlayerInfo" mas na variбvel estб "InfoPlayer"...

Vк se resolve:
PHP Code:
enum pInfo 

    
bool:NickF false
    
SobN[128], 
    
bool:Espiando
    
bool:Oculto
    
Admin 
};
new 
PlayerInfo[MAX_PLAYERS][pInfo]; 



Re: YSI\y_hooks - Maxwilson01 - 18.12.2017

Falta de atenзгo minha :/, vlw mano;