[Pedido] Verificar mostrar dialog x
#1

Bom galera queria saber como fazer uma verifiзгo antes de mostrar a dialog do login tipo verificar se a uma conta registrada com o nick do player se tiver mostrar a dialog do login caso contrario mostrar a dialog de registro.

Se alguйm poder me ajudar com isso fico grato.
Reply
#2

Exemplo:

PHP код:
public OnPlayerConnect(playerid) {
    static 
name[24], file[64];
    
GetPlayerName(playeridnamesizeof name);
    
format(filesizeof file"Players/%s.ini"name);
    if(
fexist(file)) {
        
// exibir dialog de login
    
}
    else {
        
// exibir dialog de registro
    
}
    return 
1;

Reply
#3

Quote:
Originally Posted by zPain
Посмотреть сообщение
Exemplo:

PHP код:
public OnPlayerConnect(playerid) {
    static 
name[24], file[64];
    
GetPlayerName(playeridnamesizeof name);
    
format(filesizeof file"Players/%s.ini"name);
    if(
fexist(file)) {
        
// exibir dialog de login
    
}
    else {
        
// exibir dialog de registro
    
}
    return 
1;

Vlw man seu exemplo funcionou perfeitamente, nem sei como te agradecer. +rep
Reply
#4

Uma pergunta aproveitando o tуpico, fexist e DOF2_FileExists й a mesma coisa? Nunca usei o fexist em DOF2 '-'
Reply
#5

Quote:
Originally Posted by Sennior
Посмотреть сообщение
Uma pergunta aproveitando o tуpico, fexist e DOF2_FileExists й a mesma coisa? Nunca usei o fexist em DOF2 '-'
Veja o cуdigo da include DOF2:
PHP код:
#define DOF2_FileExists \
        
fexist 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)