30.11.2012, 19:01
I added it with the rest of the command which are like at the top of the script
here is the first command for an example...
//================================================== ============================
//-------------------------------------------------
// COMMANDS
//-------------------------------------------------
//================================================== ============================
here is the first command for an example...
//================================================== ============================
//-------------------------------------------------
// COMMANDS
//-------------------------------------------------
//================================================== ============================
Код:
#if USE_DIALOGS == true dcmd_CMD_REGISTER(playerid,params[]) { #pragma unused params if (AccInfo[playerid][LoggedIn] == 1) return SendClientMessage(playerid,red,"ERROR: You are already registered and logged in."); if (udb_Exists(PlayerName2(playerid))) return SendClientMessage(playerid,red,"ERROR: This account already exists") && SendClientMessage(playerid,orange,"Login to access your account ('/"#LoginCommand"')."); new rs2tring[256]; format(rs2tring,256,"Register new Account: '%s'\n\nEnter the password to Register your Account:",pName(playerid)); ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",rs2tring,"Register","Quit"); return 1; }