error 003: declaration of a local variable must appear in a compound block
if(!udb_Exists(PlayerName2(playerid)))
//SendClientMessage(playerid,orange, "SERVER: Your account is not registered, please register by spawning your character.");
new string[20];
format(string, sizeof(string), "Register new Account: '%s'\n\nEnter the password to Register your Account:",pName(playerid));
ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",string,"Register","Quit");
if(!udb_Exists(PlayerName2(playerid)))
{
//SendClientMessage(playerid,orange, "SERVER: Your account is not registered, please register by spawning your character.");
new string[20];
format(string, sizeof(string), "Register new Account: '%s'\n\nEnter the password to Register your Account:",pName(playerid));
ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",string,"Register","Quit");
}
if(!udb_Exists(PlayerName2(playerid))) { //SendClientMessage(playerid,orange, "SERVER: Your account is not registered, please register by spawning your character."); }else{ new string[20]; format(string, sizeof(string), "Register new Account: '%s'\n\nEnter the password to Register your Account:",pName[playerid]); ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",string,"Register","Quit"); }
Try this:
Код:
if(!udb_Exists(PlayerName2(playerid))) { //SendClientMessage(playerid,orange, "SERVER: Your account is not registered, please register by spawning your character."); }else{ new string[20]; format(string, sizeof(string), "Register new Account: '%s'\n\nEnter the password to Register your Account:",pName[playerid]); ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",string,"Register","Quit"); } |