Quote:
Originally Posted by Jefff
pawn Код:
if(!dini_Exists(path)) // if account doesn't exist { gPlayerAccount[playerid] = 1; DisplayDialogForPlayer(playerid, 1); // you show login dialog ? wth SendClientMessage(playerid, -1, "This server may use explicit content. By playing here you agree with our COPPA Compliance."); return 1; } else // account exists { gPlayerAccount[playerid] = 0; DisplayDialogForPlayer(playerid, 2); // you show register dialog ? wth SendClientMessage(playerid, -1, "This server may use explicit content. By playing here you agree with our COPPA Compliance."); return 1; }
|
Quote:
Originally Posted by Konstantinos
Jefff pointed out the mistake but you didn't understand him.
If the file doesn't exist (player is not registered), you set that the player has an account and you show them the dialog with ID 1 which is the login one. Those HAVE to be on the login part (if the file exists).
Just swap them.
|
My bad then, I'll try it out.
Edit: Applied the changes, nothing has changed. It seems the error comes from another source.