Kick? -
Gooday - 14.01.2012
I got nortons basic GM with all my scripts added and when someone register need rilog, this is making me losing a lot of players so how i can remove this function (if you dont rilog you see total black screen)
pawn Код:
{
switch( dialogid ) {
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response) {
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_WriteInt(File,"Skin", 0);
INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_WHITE"You have successfully registered your account! Relog to save your stats! Thank you ","Ok","");
}
}
Re: Kick? -
iGetty - 14.01.2012
Remove
pawn Код:
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_WHITE"You have successfully registered your account! Relog to save your stats! Thank you ","Ok","");
And show me the case of "DIALOG_SUCCESS_1" on OnDialogResponse.
Re: Kick? -
Gooday - 14.01.2012
pawn Код:
switch( dialogid ) {
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response) {
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_WriteInt(File,"Skin", 0);
INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_WHITE"You have successfully registered your account! Relog to save your stats! Thank you ","Ok","");
}
Re: Kick? -
iGetty - 14.01.2012
I said: case DIALOG_SUCCESS_1:
Not case register...
Re: Kick? -
Gooday - 14.01.2012
LOL i dont have :/ i just got the last line with DIALOG_SUCCESS_1
Re: Kick? -
BleverCastard - 14.01.2012
Did you search "Case DIALOG_SUCCESS_1:"?
Re: Kick? -
Gooday - 14.01.2012
Thats the only result i got!